Cipher
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardCipher(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-cipherAbout 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 allAda Moreau
No. 004 271Edge network
38 regions
FRA → SIN
24ms
Integrations
0 of 7 connected