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.
| Control | Type | Default | Preview limits |
|---|---|---|---|
stiffness | number | 400 | From 100 to 800; step 25 |
damping | number | 45 | From 10 to 90; step 1 |
size | number | 46 | From 16 to 64; step 2 |
accent | color | #FF6A1F | No additional limit in the metadata. |
rotate | boolean | true | No 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.