A sticky nav that changes colour exactly where a dark section meets a light one: as the boundary slides through the bar, the bar is split along that line, half inverted and half not, so it always reads against whatever is beneath it.
On scroll (rAF) the script finds the toned section under the bar's top and bottom edges and, if they differ, the boundary y inside the bar; it sets `data-tone` on both copies and `--split` (px) on the overlay, whose `clip-path: inset(0 0 calc(100% - var(--split)) 0)` reveals only the upper part. The overlay copy is `aria-hidden` with `tabindex=-1` links so assistive tech sees one nav.
From prompt to a block in your page.
The preview is the shipped block inside a neutral demo page. Scroll, hover, drag: everything is live.
Token sets re-tint the block 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 block's markup, styles and script verbatim with the tokens and the rules that keep it self-contained.
Add the head lines it names, paste the block, replace the placeholder copy. Tokens live on :root.