
N° 0973 · toggle
Half-star Rating is a toggle switch animation. It responds to hover, pointer, keyboard and form. Palettes: Screen, Late show, Ticket stub, Green room and Marquee.
Each star is an outline SVG with a second filled SVG on top, cut with `clip-path: inset(0 calc(100% - var(--f) * 100%) 0 0)` where --f is 0, 0.5 or 1. Pointer x inside a star picks the half; pointerup commits, committing the same value clears. Ten radios named per rating hold the value; arrow keys step by 0.5, Home and End jump, Delete clears.
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° 0973 · toggle

N° 0801 · toggle

N° 0798 · toggle

N° 0800 · toggle

N° 0797 · toggle

N° 0796 · toggle

N° 0408 · toggle

N° 0410 · toggle

N° 0819 · nav

N° 0804 · cursor

N° 0826 · loader

N° 0812 · input

N° 0808 · input

N° 0801 · toggle

N° 0832 · card

N° 0830 · card