Token

Authenticator

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-token

About 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 all
Not tracking
  • Billing redesign
  • Onboarding copy
  • Sync notes
TrackerGet code

Pro

Billing

  • Unlimited projects
  • Usage analytics
  • Priority support
BeamGet code
Petal

Guided
Onboarding

Activation

001
BloomGet code
Secret keyLive
CipherGet code