Skip to content
Menu

Cursor

Trailing cursor

Trailing cursor: A drawn cursor that chases the real pointer on a spring, trailing a soft glow and fading afterimages while it turns to face the direction it is travelling.

Using Trailing cursor

Trailing cursor uses the card preview frame with a dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
stiffnessnumber400From 100 to 800; step 25
dampingnumber45From 10 to 90; step 1
sizenumber46From 16 to 64; step 2
accentcolor#FF6A1FNo additional limit in the metadata.
rotatebooleantrueNo additional limit in the metadata.
Which frameworks are available for Trailing cursor?

Trailing cursor is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Trailing cursor depend on?

The React metadata lists these npm dependencies beyond React: motion.

What accessibility details are visible in Trailing cursor?

The React source for Trailing cursor includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Trailing cursor handle reduced motion?

Trailing cursor reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: echo1Damping: reduced ? Math.max(ECHO1_DAMPING * 2, 90) : ECHO1_DAMPING; echo1Stiffness: reduced ? Math.max(ECHO1_STIFFNESS * 2.4, 900) : ECHO1_STIFFNESS; echo2Damping: reduced ? Math.max(ECHO2_DAMPING * 2, 90) : ECHO2_DAMPING. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components