Skip to content
PixiKit

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
NameTypeDefaultDescription
textstring"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.
spacingnumber88The distance between copies, in pixels. In ribbon mode, extra space between letters.
maxPointsnumber7The most copies shown at once in stamp and chain modes.
colorstring"currentColor"The colour of the text.
fontSizenumber28The font size, in pixels.
fontWeightnumber | string600The font weight.
fontFamilystring"inherit"The font family.
shrinknumber0.5How much smaller the trail gets toward its end, 0 to 1.
fadenumber0.6How much the trail fades toward its end, 0 to 1.
smoothingnumber0.3Softens the path the trail follows, 0 to 1. Higher values lag a little behind the pointer.
followMouseDirectionbooleantrueTurns the text to face the direction the pointer moves.
randomFloatbooleantrueLets stamped copies sway gently, and makes chains and ribbons ripple.
popInbooleantrueMakes new copies pop in with a little overshoot.
keepUprightbooleantrueKeeps copies from turning upside down when the pointer moves left.
exitDurationnumber0.5How long a stamped copy takes to shrink away, in seconds.
removalIntervalnumber30How quickly the trail pulls back once the pointer stops, in milliseconds per copy.
hideCursorbooleanfalseHides the system cursor over the element.
childrenReactNodeNoneContent shown inside the area, under the trail.
classNamestringNone
styleCSSPropertiesNone

More text effects in Pro

View all

Related