Skip to content
PixiKit

Flock Cursor

A swarm of particles eddies around the pointer, streams behind it when it rushes, pours around the buttons it hovers and bursts on click.

pixikit.com/docs/effects/flock-cursor

Customize

Scope
Count800
Size2.6px
Shape
Color
Accent color
Spread90px
Speed1.0
Swirl0.60
Tail0.50
Trail0.60
Wander0.50
Depth0.70
Idle
Click effect
Hide cursor
Intro
Enabled
Light mode
Dpr2.00

Props

24
NameTypeDefaultDescription
scope"container" | "page""container"Fills its own box, or the whole page behind everything.
childrenReactNodeNoneContent the swarm flows behind, such as a hero with buttons.
countnumber800Number of particles in the swarm, up to 2000.
sizenumber2.6Size of each particle, in pixels.
shape"dot" | "streak" | "square""dot"Shape of each particle.
colorstring"#ffffff"Colour of the particles; near black in light mode.
accentColorstringNoneColour particles take on when they rush and when you click; the particle colour by default.
spreadnumber90Radius of the swarm around the pointer, in pixels.
speednumber1How lively the swarm churns and turns while the pointer rests.
swirlnumber0.6How much the swarm curls into eddies and how long they keep turning, 0 (calm) to 1 (stormy).
tailnumber0.5How far the swarm streams behind a fast pointer, 0 (tight) to 1 (a long trailing tail).
trailnumber0.6Motion blur on fast particles.
wandernumber0.5How restlessly the swarm folds and drifts on its own.
depthnumber0.7How much near particles grow and far ones shrink and fade, 0 (flat) to 1 (deep).
targetsstring"a, button, [data-swarm-target]"Elements inside the swarm that it pours around while hovered; an empty string turns this off.
idle"roam" | "gather" | "hide""roam"What the swarm does while the pointer 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.
hideCursorbooleanfalseHides the system cursor over the component and marks the pointer with a dot.
introbooleantrueSwirls the swarm in from across the area on mount.
enabledbooleantrueShows and animates the swarm.
lightModebooleanfalseUses near black particles by default and keeps them crisp, for light backgrounds.
dprnumber2Highest device pixel ratio drawn; capped at 2.
classNamestringNone
styleCSSPropertiesNone

More interaction effects in Pro

View all

Related