Component packs › Caret › Trail Cursor
A ribbon of ink streams behind the pointer, curls round turns and hangs and sways when you stop, darker on its underside where it twists.
Trail Cursor is a cursor from Caret, a component pack with 6 cursors: Custom cursors that read what they are over and turn into its tool. Price: $2 for the whole pack.
Built with: verlet rope with gravity, tapered two-tone ribbon, flick on press.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
html | string | Content shown in the area (HTML). | |
length | number | 22 | Ribbon segments, 8–40. Default 22. |
height | number | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: a virtual hand draws loops every N ms. |
readonly area: HTMLElementdestroy(): voidimport TrailCursor from './TrailCursor';
<TrailCursor />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Custom cursors.