Menu

Cursor Trail

HOVER ME

Customize

Trail Text

Props

trailTextstring

Characters or emojis that spawn as trail particles.

Default"✦"
style"fade" | "float" | "shrink" | "spin" | "scatter"

Particle animation style.

Default"fade"
colorstring

Fallback color for particles when colors array is not provided.

Default"#a889c7"
colorsstring[]

Array of colors cycled through particles. Overrides color when provided.

Defaultundefined
spacingnumber

Minimum distance in px the cursor must travel before a new particle spawns.

Default30
minSizenumber

Minimum font size (px) of spawned particles.

Default20
maxSizenumber

Maximum font size (px) of spawned particles.

Default48
exitDurationnumber

Duration in seconds for each particle fade-out animation.

Default0.4
removalIntervalnumber

Interval in ms between removing trail items when the cursor stops moving.

Default30
maxPointsnumber

Maximum number of trail particles visible at once.

Default12
followMouseDirectionboolean

When true, each particle rotates to match the direction the cursor is moving.

Defaultfalse
randomFloatboolean

When true, particles drift with a random floating offset after spawning.

Defaulttrue
classNamestring

Extra classes forwarded to the wrapper element.

Default""
childrenReactNode

Content to wrap. The trail activates anywhere inside this area.

Defaultundefined

Crafted withbyMohammad Tasin