Cursor Text Trail
A trail of text or emoji behind the pointer: copies stamped along its path, a chain that follows like a snake, or the letters laid along the path as a ribbon. Copies turn to face the movement, shrink and fade toward the end and pull back in when the pointer stops.
pixikit.com/docs/effects/cursor-text-trail
Customize
Mode
Spacing88px
Max points7
Color
Font size28px
Font weight600
Shrink0.50
Fade0.60
Smoothing0.30
Follow mouse direction
Random float
Pop in
Keep upright
Exit duration0.50s
Removal interval30ms
Hide cursor
Props
21| Name | Type | Default | Description |
|---|---|---|---|
text | string | "Hello" | The text or emoji the trail is made of. |
mode | "stamp" | "chain" | "ribbon" | "stamp" | Stamp leaves copies along the path, chain makes copies follow each other like a snake, ribbon lays the letters along the path. |
spacing | number | 88 | The distance between copies, in pixels. In ribbon mode, extra space between letters. |
maxPoints | number | 7 | The most copies shown at once in stamp and chain modes. |
color | string | "currentColor" | The colour of the text. |
fontSize | number | 28 | The font size, in pixels. |
fontWeight | number | string | 600 | The font weight. |
fontFamily | string | "inherit" | The font family. |
shrink | number | 0.5 | How much smaller the trail gets toward its end, 0 to 1. |
fade | number | 0.6 | How much the trail fades toward its end, 0 to 1. |
smoothing | number | 0.3 | Softens the path the trail follows, 0 to 1. Higher values lag a little behind the pointer. |
followMouseDirection | boolean | true | Turns the text to face the direction the pointer moves. |
randomFloat | boolean | true | Lets stamped copies sway gently, and makes chains and ribbons ripple. |
popIn | boolean | true | Makes new copies pop in with a little overshoot. |
keepUpright | boolean | true | Keeps copies from turning upside down when the pointer moves left. |
exitDuration | number | 0.5 | How long a stamped copy takes to shrink away, in seconds. |
removalInterval | number | 30 | How quickly the trail pulls back once the pointer stops, in milliseconds per copy. |
hideCursor | boolean | false | Hides the system cursor over the element. |
children | ReactNode | None | Content shown inside the area, under the trail. |
className | string | None | |
style | CSSProperties | None |