A sticky table of contents beside a long article: as you scroll, the entry for the heading in view lights up and a thin accent bar slides down the rail to sit beside it, growing to the height of the entry. Clicking an entry scrolls smoothly to its heading.
Root margin `-20% 0px -70% 0px` makes the band near the top of the scroller the trigger zone; the last heading to enter it wins. The marker transitions `top` and `height` over 0.3 s `cubic-bezier(.2,.8,.2,1)`; the active link's colour crosses to accent in 0.2 s. Clicks call `scrollIntoView({behavior:'smooth'})` on the heading.
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.