
N° 0961 · card
Drag-to-reorder Cards is a card animation. It responds to drag, reorder, keyboard and announce. Palettes: Queue, Sage, Late show, Rosewood and Signal.
pointerdown records every card's midpoint and the lifted card's height; after 5 px of travel the card gets .is-lifted (scale 1.02, accent edge, shadow) and follows the pointer through --ds-y. The target index is the furthest midpoint the lifted card's centre has passed; cards between the start and the target shift by ±(height + gap) with a 220 ms transform transition, which is the live gap. On drop the transforms are cleared without transition, the card is inserted at the target, and a FLIP slides it from where it was let go into its slot. Keyboard and buttons move by swapping the neighbour (so the focused grip never leaves the DOM) with the same FLIP. Every change writes the ids to the hidden input and fires change.
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° 0961 · card

N° 0960 · card

N° 0959 · card

N° 0957 · card

N° 0832 · card

N° 0830 · card

N° 0353 · card

N° 0360 · card

N° 0803 · cursor

N° 0830 · card

N° 0806 · cursor

N° 0995 · commerce

N° 0964 · text

N° 0837 · text

N° 0826 · loader

N° 0823 · image