Decal
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardDecal(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-decalAbout 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


