
N° 0969 · nav
Collapsing Sidebar Nav is a menu animation. It responds to click. Palettes: Paper, Mint on ink, Moss, Blush and Orchid.
`#nav { width: var(--w) }` switches between 240 px and 68 px; before and after the switch the script measures the panel, the toggle and every item, then WAAPI animates the panel's and items' `::before` boxes from `scaleX(old ÷ new)` (origin left) and the toggle from `translateX(old − new)` to `none` over 0.3 s `cubic-bezier(.2,.8,.2,1)`. Labels have `opacity` and `translateX(−8px)` transitions that run 0.15 s with no delay when collapsing and a 0.15 s delay when expanding. In the rail the wordmark leaves the row so the toggle stays inside it.
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° 0969 · nav

N° 0968 · nav

N° 0818 · nav

N° 0821 · nav

N° 0820 · nav

N° 0819 · nav

N° 0424 · nav

N° 0425 · nav

N° 0819 · nav

N° 0431 · nav

N° 0837 · text

N° 0835 · button

N° 0834 · button

N° 0818 · nav

N° 0815 · overlay

N° 0812 · input