Rhea Okafor
Product designer
rhea.design
+44 7700 900 412
Rhea Okafor
Product designer
rhea.design
+44 7700 900 412
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardToss(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-tossA business card lying on the desk that you can pick up and throw: it lifts as you grab it, turns around the point you are holding as you drag, and when you let go it slides on with the speed you gave it, spinning down and bouncing off the edges.
Keyboard and screen readers
The card is a focusable group with its name and contact details as text; arrow keys slide it across the desk.
Reduced motion
It moves only while you drag it, with no throw or spin.
Use it in anything you build, commercial and client work included. Licence
Turn the wheel to your pace
min/kmmin/miGift voucher
Holloway Books
£50
No. 0471 2286
Wiltshire · shot at dawn
The Daily Motion
Vol. XIILate edition2 cents