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| Name | Type | Default | Description |
|---|---|---|---|
scope | "container" | "page" | "container" | Fills its own box, or the whole page behind everything. |
children | ReactNode | None | Content the swarm flows behind, such as a hero with buttons. |
count | number | 800 | Number of particles in the swarm, up to 2000. |
size | number | 2.6 | Size of each particle, in pixels. |
shape | "dot" | "streak" | "square" | "dot" | Shape of each particle. |
color | string | "#ffffff" | Colour of the particles; near black in light mode. |
accentColor | string | None | Colour particles take on when they rush and when you click; the particle colour by default. |
spread | number | 90 | Radius of the swarm around the pointer, in pixels. |
speed | number | 1 | How lively the swarm churns and turns while the pointer rests. |
swirl | number | 0.6 | How much the swarm curls into eddies and how long they keep turning, 0 (calm) to 1 (stormy). |
tail | number | 0.5 | How far the swarm streams behind a fast pointer, 0 (tight) to 1 (a long trailing tail). |
trail | number | 0.6 | Motion blur on fast particles. |
wander | number | 0.5 | How restlessly the swarm folds and drifts on its own. |
depth | number | 0.7 | How much near particles grow and far ones shrink and fade, 0 (flat) to 1 (deep). |
targets | string | "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. |
hideCursor | boolean | false | Hides the system cursor over the component and marks the pointer with a dot. |
intro | boolean | true | Swirls the swarm in from across the area on mount. |
enabled | boolean | true | Shows and animates the swarm. |
lightMode | boolean | false | Uses near black particles by default and keeps them crisp, for light backgrounds. |
dpr | number | 2 | Highest device pixel ratio drawn; capped at 2. |
className | string | None | |
style | CSSProperties | None |