
N° 0973 · toggle
Checkbox Morph is a toggle switch animation. It responds to click. Palettes: Paper, Mint on ink, Moss, Blush and Orchid.
`:checked` → box fill `scale(0 → 1)` 0.2 s with overshoot; check path `stroke-dashoffset 22 → 0` over 0.25 s starting 0.1 s later; label background `linear-gradient(currentColor 0 0) no-repeat 0 55% / 0% 1.5px` → `100% 1.5px` 0.3 s. `:indeterminate` shows the dash path (`d="M6 12h12"`) at full length; checking from there transitions the dash out and the check in.
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° 0799 · toggle

N° 0410 · toggle

N° 0797 · toggle

N° 0410 · toggle

N° 0966 · button

N° 0386 · button

N° 0363 · card

N° 0193 · click confetti physics

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

N° 1010 · flat illustrated clouds drifting in three parallax bands