
N° 0806 · cursor
Sparkle Trail Cursor is a custom cursor effect. It responds to hover and pointer. Palettes: Planetarium, Aurora, Dawn dome, Red giant and Moonless.
A fixed canvas (data-cursor, hidden until the first mouse or pen pointermove) keeps a 'travelled' distance. Each move adds its length to an accumulator; for every data-step px (13) a sparkle is placed at the interpolated point with a sideways kick perpendicular to the motion, a slight upward drift that gravity pulls back, spin and size 2.5–7.5 px. Alpha is min(1 − (travelled − born) / data-fade, 1 − age / 1.4 s). The rAF loop runs only while sparkles live and stops when the tab is hidden; the .pz button pauses spawning and clears the canvas.
The preview is the shipped element inside a neutral demo page. Hover, click, focus: the one interaction it is about is live.
Token sets re-tint it live. The prompt carries the one you chose.
A paste-in snippet, or a component for Next.js, React, Vue, Astro, WordPress, Shopify or Webflow.
It quotes the markup, styles and script verbatim with the tokens and the rules that keep it self-contained.
It inherits your page's font and width; the tokens live on :root; several instances share one script.

N° 0806 · cursor

N° 0805 · cursor

N° 0804 · cursor

N° 0803 · cursor

N° 0802 · cursor

N° 0407 · cursor

N° 0411 · cursor

N° 0414 · cursor

N° 0851 · ferris wheel turning with gondolas that stay level

N° 0960 · card

N° 0957 · card

N° 0425 · nav

N° 0414 · cursor

N° 0361 · card

N° 1020 · hand-drawn doodles drifting on a loose grid and wobbling once on hover

N° 1012 · branching lightning bolts that light the cloud base