Cipher

Secret keyLive
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-cipher

About this component

An API key on an amber dot matrix display. The key sits masked behind a slow shimmer until Reveal sends a bright column across the glass and each character flickers out of noise and locks in. Hide lets the dots fall dark again, and Copy answers with a drawn tick.

Triggers

  • Click
  • State change
  • Glow
  • Card
  • Draw
  • Icon swap

Techniques

  • requestAnimationFrame
  • Text animation
  • stroke-dashoffset
  • Keyframes
  • CSS transition
  • Radial gradient
  • Pseudo elements

Difficulty

Advanced

Accessibility

Keyboard and screen readers

The canvas is role="img" and its label is "Key hidden" or the key itself, so the scramble is never read out. Reveal is a native <button> with aria-pressed; Copy is a native <button>, and a visually hidden aria-live="polite" line says "Key copied". Both have :focus-visible rings.

Reduced motion

The shimmer holds still, the key appears and hides at once, and the tick is shown without drawing.

Use it in anything you build, commercial and client work included. Licence

More cards

See all
Assistant

Enter to send
ComposerGet code
HaldenMember

Ada Moreau

No. 004 271
FoilGet code

Edge network

38 regions

FRA → SIN

24ms

GlobeGet code

Integrations

0 of 7 connected

HubGet code