Ada Moreau
No. 004 271Foil
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardFoil(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-foilAbout this component
A black membership pass with a holographic foil engraving: a guilloche rosette, a seal and a border of micro text. It tilts toward the pointer in 3D, the foil runs through its colours with the angle and a glare slides the other way. Left alone it sways slowly.
Triggers
- Hover
- Mouse tracking
- 3D
- Ambient
- Gradient
- Card
Techniques
- Perspective
- 3D transform
- Mouse tracking
- requestAnimationFrame
- Conic gradient
- mix-blend-mode
- SVG
- @property
- CSS variables
Difficulty
Advanced
Accessibility
Keyboard and screen readers
The pass is an article with real text for the brand, tier, name and number, light on black at well over 4.5:1. The engraving, its micro text border, the seal and the glare are ornament and aria-hidden. Nothing depends on the pointer.
Reduced motion
The tilt loop never starts and the foil shimmer is off, leaving a still, complete pass.
Use it in anything you build, commercial and client work included. Licence
More cards
See allEdge network
38 regions
FRA → SIN
24ms
Integrations
0 of 7 connected
Launch week
Usage
Billing
Metering
002