12
Ball bounceFrame 12 / 24
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardOnionSkin(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-onion-skinAn animator's card on a light table showing one frame of a bouncing ball: hover to turn the onion skin on and the frames before and after appear as ghosts along the arc, and move across the picture to scrub through all 24 frames, squash and stretch included.
Keyboard and screen readers
The picture is a focusable slider (role="slider") over frames 1 to 24; arrow keys step and focus turns the onion skin on.
Reduced motion
Nothing moves on its own: frames change only as you scrub, and under prefers-reduced-motion the onion skin appears without fading in.
Use it in anything you build, commercial and client work included. Licence
Every 7 days · last done 31 days ago