Mascot

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-mascot

About 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

More cards

See all
PairGet code
$12/moOne seat
PlanGet code
Nova
Receive48
Kite
SwapGet code
TearGet code