Pulse animation

Embed options

Every option of the code embed, running live. All of them are optional; a tile with a dark border shows the default value.

Default

data-pulse-animation

The attribute alone, with no options. The canvas is transparent, so it works on any background.

No optionsOn white
No optionsOn a dark background

Bars

data-bars

Number of bars, from 4 to 48. Default 13.

5
9
13Default
24
40

Thickness

data-thickness

Bar width, from 0.2 to 1.9. Default 1.

0.3
0.6
1Default
1.6

Speed

data-speed

Motion speed, from 0 to 4. Default 1. 0 shows a still frame.

0Still
0.4
1Default
2.5

Intensity

data-intensity

How far the bars rise and fall, from 0 to 3. Default 1.

0Calm
0.5
1Default
2.2

Scale

data-scale

Size of the animation inside its box, from 0.25 to 1.75. Default 1. Above about 1.5 the tails reach the edges.

0.5
0.75
1Default
1.4

Colors

data-colors

1 to 4 hex colors, separated by commas or spaces. The animation cycles through them; fewer than 4 repeat. Default: the brand gradient.

#d4457f1 color
#00c2a8, #2700eb2 colors
#ff5a1f #ffb800 #7a00ff3 colors
#f1db64,#ea923c,#d4457f,#2700ebDefault, 4 colors

Combined

Options work together on one element.

Busybars 20, speed 0.7, intensity 1.6, scale 1.2, 2 colors
Calmbars 7, thickness 1.4, speed 0.5, intensity 0.4

Fallbacks

Values that are not numbers or colors print a console warning and use the default. Numbers outside a range are clamped to it.

Bad valuesbars "lots", speed "fast", colors "red"
Out of rangeClamped to bars 48, speed 0, scale 1.75