Mascot
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardMascot(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-mascotAbout this component
A hand of five collectible cards, each with a soft 3D character in its own little world. A holographic sheen drifts across the front card, the card tilts under the pointer while its character turns the other way, and a drag, a press on a fanned card or the arrow keys deals the next one to the front.
Triggers
- Card
- 3D
- Mouse tracking
- Spring
- Gradient
- Ambient
- State change
Techniques
- Perspective
- preserve-3d
- 3D transform
- Mouse tracking
- mix-blend-mode
- Pseudo elements
- SVG
- Keyframes
Difficulty
Advanced
Accessibility
Keyboard and screen readers
The deck is a focusable group whose label names the front card, its rarity and its place (Card 1 of 5); Left/Right/Home/End deal cards. Each card has a dot button below, labelled with its name and marked aria-pressed for the front card. Fanned cards are aria-hidden.
Use it in anything you build, commercial and client work included. Licence