Scan

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-scan

About 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

More cards

See all
SignGet code

7h42m

SleepGet code

SorbetGet code

Walk

4,152steps

StrideGet code