A card that turns over to show its back: hover peeks it 12° so you know it flips, a click or Enter completes the turn with a slight overshoot, and the back face carries details and a button. The flip respects whether the card is already turned, so it can also be flipped back.
Placeholder photos by Nattu Adnan on Unsplash. Replace them with your own before launch.
`.inner` rotates `rotateY(12deg)` on hover and `rotateY(180deg)` when `.flipped`, 0.7 s `cubic-bezier(.4,1.3,.4,1)` so it overshoots 4° before settling. Faces are absolutely stacked, the back pre-rotated 180°. The container is a button-like `div` with `role="button"`, `tabindex` and `aria-pressed` so the flip is keyboard reachable.
From prompt to a block in your page.
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.