Flock

Teams move faster in formation

Plan, build and ship on one shared rhythm, with every update in plain sight.

Count
800
Size
2.6px
Spread
90px
Swirl
0.6
Speed
Tail
0.5
Trail
0.6
Wander
0.5
Depth
0.7

More cursor effects in Pro

Cursor trails and pointer effects that give a site its own feel.

View all 19
23 properties
childrenReactNodeContent the swarm flows behind, such as a hero with buttons.
count800Number of particles in the swarm, up to 2000.
size2.6Size of each particle, in px.
shape'dot' | 'streak' | 'square''dot'Shape of each particle.
color'#ffffff'Color of the particles. Defaults to near black in light mode.
accentColorcolorColor particles take on when they rush and when you click.
spread90Radius of the swarm around the cursor, in px.
speedHow lively the swarm churns and turns while the cursor rests.
swirl0.6How much the swarm curls into eddies and how long they keep turning, from 0 (calm) to 1 (stormy).
tail0.5How far the swarm streams behind a fast cursor, from 0 (tight) to 1 (a long trailing tail).
trail0.6Motion blur on fast particles.
wander0.5How restlessly the swarm folds and drifts on its own.
depth0.7How much near particles grow and blur and far ones shrink and fade, from 0 (flat) to 1 (deep).
targets'a, button, [data-swarm-target]'Elements inside the swarm that it pours around while hovered. Pass an empty string to turn this off.
idle'roam' | 'gather' | 'hide''roam'What the swarm does while the cursor is away: drift around the area, wait in the middle, or fade out.
clickEffect'burst' | 'pulse' | 'none''burst'What a click does. Burst splashes the swarm outward in a curl, pulse sends a wave of light through it.
hideCursorHides the system cursor over the component and marks the pointer with a dot, so the swarm becomes the cursor.
Swirls the swarm in from across the area on mount.
enabledShows and animates the swarm.
lightModeUses near black particles by default and keeps them crisp, for light backgrounds.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
Inline styles for the container.
childrenReactNode

Content the swarm flows behind, such as a hero with buttons.

countnumber

Number of particles in the swarm, up to 2000.

Default800
sizenumber

Size of each particle, in px.

Default2.6
shape'dot' | 'streak' | 'square'

Shape of each particle.

Default'dot'
colorstring

Color of the particles. Defaults to near black in light mode.

Default'#ffffff'
accentColorstring

Color particles take on when they rush and when you click.

Defaultcolor
spreadnumber

Radius of the swarm around the cursor, in px.

Default90
speednumber

How lively the swarm churns and turns while the cursor rests.

swirlnumber

How much the swarm curls into eddies and how long they keep turning, from 0 (calm) to 1 (stormy).

Default0.6
tailnumber

How far the swarm streams behind a fast cursor, from 0 (tight) to 1 (a long trailing tail).

Default0.5
trailnumber

Motion blur on fast particles.

Default0.6
wandernumber

How restlessly the swarm folds and drifts on its own.

Default0.5
depthnumber

How much near particles grow and blur and far ones shrink and fade, from 0 (flat) to 1 (deep).

Default0.7
targetsstring

Elements inside the swarm that it pours around while hovered. Pass an empty string to turn this off.

Default'a, button, [data-swarm-target]'
idle'roam' | 'gather' | 'hide'

What the swarm does while the cursor is away: drift around the area, wait in the middle, or fade out.

Default'roam'
clickEffect'burst' | 'pulse' | 'none'

What a click does. Burst splashes the swarm outward in a curl, pulse sends a wave of light through it.

Default'burst'
hideCursorboolean

Hides the system cursor over the component and marks the pointer with a dot, so the swarm becomes the cursor.

introboolean

Swirls the swarm in from across the area on mount.

enabledboolean

Shows and animates the swarm.

lightModeboolean

Uses near black particles by default and keeps them crisp, for light backgrounds.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.