Scan
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardScan(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-scanAbout this component
A coverage card: a violet beam stands on a pale card with the figure on its head, and the field behind it is a scatter of label chips still in cipher, each label a living ordered dither of fine violet pixels. Press the head and the beam sweeps across the field; the dither on each chip it passes is wiped away as the label comes up letter by letter and takes a green check, the figure rolling up as it lands. Press again and the field goes back to cipher.
Triggers
- Card
- Glow
- Click
- State change
- Delay stagger
Techniques
- CSS variables
- CSS transition
- Filter
- requestAnimationFrame
- Pseudo elements
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The head is a native button whose label reads the coverage percentage and whether the next press scans or resets, with aria-pressed; the field is aria-hidden and a polite live region announces Scan complete with the figure.
Reduced motion
Reduced motion removes the sweep transition and the shimmer: the beam and every chip jump to their final state.
Use it in anything you build, commercial and client work included. Licence