Decal

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-decal

About this component

A download card built as three plates of teal acrylic floating over a brushed steel panel with corner screws and etched grooves, a light sweeping across the metal. Move the pointer and the plates separate in depth; press the arrow and they settle flat while a bar of light burns across the top plate and the figure climbs, then the arrow becomes a glowing check and the plates lift again.

Triggers

  • Card
  • 3D
  • Mouse tracking
  • Click
  • State change
  • Glow

Techniques

  • Perspective
  • 3D transform
  • CSS variables
  • clip-path
  • requestAnimationFrame
  • Gradient
  • Filter
  • Event position

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A section labelled Download. The arrow is a native button whose label changes from Download to Downloading to Downloaded, press to reset, with a white focus ring; the track is a progressbar with aria-valuenow; a visually hidden polite live region announces Downloading and Download complete. The plates, screws, grooves and sweep are aria-hidden.

Reduced motion

There is no sweep, float or tilt transition and the download completes as a cut.

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

More cards

See all

Motion

DividersGet code
FlapGet code

Final reel

FolioGet code
ForecastGet code