Move around
More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
gridSize | 40 | Number of pixels across the longer side. | |
trailSize | 0.1 | Radius of the trail brush, as a fraction of the longer side. | |
maxAge | 250 | How long each part of the trail lasts, in ms. | |
interpolate | 5 | How many in-between points fill gaps on fast moves. Higher is smoother. | |
easingFunction | (x: number) => number | x => x | Easing curve for how the trail swells in and fades out. |
color | '#ffffff' | Pixel color. | |
trailColor | undefined | A second color the trail shifts to as it ages. Leave it out for a single color. | |
gooeyFilter | { strength: number } | false | { strength: 2 } | Melts neighbouring pixels into liquid blobs. Higher strength rounds them more. Pass false for separate pixels. |
shape | 'square' | 'circle' | 'diamond' | 'square' | Shape of each pixel when goo is off. |
gap | 0.08 | Space between pixels, as a fraction of a pixel. With goo on it draws fine seams between them. | |
decay | 'fade' | 'shrink' | 'dither' | 'fade' | How pixels disappear: fading out, shrinking away or dropping out in a dither pattern. |
flow | How much the trail keeps drifting in the direction the cursor moved, from 0 to 1. | ||
gravity | Makes the trail sag down as it fades. Negative values make it rise, from -1 to 1. | ||
sparkle | Makes fading pixels flicker, from 0 to 1. | ||
shine | 0.6 | Glossy light on the pixels: bevels on every step, a brighter core and highlights, from 0 to 1. | |
glow | 0.4 | A soft glow around the trail, from 0 to 1. | |
clickBurst | Clicking splashes a ring of trail out from the cursor. | ||
imageSrc | undefined | An image the trail reveals. Each pixel takes the color of the image beneath it. | |
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
gridSizenumberNumber of pixels across the longer side.
40trailSizenumberRadius of the trail brush, as a fraction of the longer side.
0.1maxAgenumberHow long each part of the trail lasts, in ms.
250interpolatenumberHow many in-between points fill gaps on fast moves. Higher is smoother.
5easingFunction(x: number) => numberEasing curve for how the trail swells in and fades out.
x => xcolorstringPixel color.
'#ffffff'trailColorstringA second color the trail shifts to as it ages. Leave it out for a single color.
undefinedgooeyFilter{ strength: number } | falseMelts neighbouring pixels into liquid blobs. Higher strength rounds them more. Pass false for separate pixels.
{ strength: 2 }shape'square' | 'circle' | 'diamond'Shape of each pixel when goo is off.
'square'gapnumberSpace between pixels, as a fraction of a pixel. With goo on it draws fine seams between them.
0.08decay'fade' | 'shrink' | 'dither'How pixels disappear: fading out, shrinking away or dropping out in a dither pattern.
'fade'flownumberHow much the trail keeps drifting in the direction the cursor moved, from 0 to 1.
gravitynumberMakes the trail sag down as it fades. Negative values make it rise, from -1 to 1.
sparklenumberMakes fading pixels flicker, from 0 to 1.
shinenumberGlossy light on the pixels: bevels on every step, a brighter core and highlights, from 0 to 1.
0.6glownumberA soft glow around the trail, from 0 to 1.
0.4clickBurstbooleanClicking splashes a ring of trail out from the cursor.
imageSrcstringAn image the trail reveals. Each pixel takes the color of the image beneath it.
undefineddprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



