- Billing redesign
- Onboarding copy
- Sync notes
Token
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardToken(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.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-tokenAbout this component
A one-time code card. Six large digits sit on an engraved well beside a ring that drains as the code ages; when it empties the digits roll to a new code one after another and the ring refills. The raised Copy button presses down and answers with a tick.
Triggers
- Continuous
- Click
- State change
- Card
- Icon swap
- Delay stagger
Techniques
- requestAnimationFrame
- stroke-dashoffset
- Text animation
- CSS transition
- Keyframes
- Transition delay stagger
- SVG
- Pseudo elements
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The code carries its digits as a label ("Code 899 489"), and the rolling strips are aria-hidden so a roll is never read out. Copy is a native <button> with a :focus-visible ring, and a visually hidden aria-live="polite" line says "Code copied". The ring is decorative.
Reduced motion
The digits change without rolling and the button does not animate.
Use it in anything you build, commercial and client work included. Licence
More cards
See allPro
- Unlimited projects
- Usage analytics
- Priority support
Guided
Onboarding
Activation
001