A round button that appears once you have scrolled a bit, with a ring around it that fills as you go further down; pressing it scrolls smoothly back to the top and the button fades away as it arrives. The ring is the same progress a reading bar would show, worn by the button instead.
`stroke-dashoffset = 100 − progress × 100` on a `pathLength="100"` circle rotated −90°; visible when `scrollTop > 160` via `.show` (scale 0.8 → 1 and fade, 0.25 s). Click: `scrollTo({ top: 0, behavior: 'smooth' })`; the demo scroller is the target, on a page use `window`. The arrow nudges up 2 px on hover.
From prompt to a block in your page.
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.