Pocket

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-pocket

About this component

A soft stitched pocket holding one card, with a fuzzy plum dust-bunny peeking out of it: its two bright eyes follow your pointer around, it blinks now and then, and on hover the card rises a little further out of the pocket so it can have a proper look.

Triggers

  • Mouse tracking
  • Hover
  • Card

Techniques

  • Mouse tracking
  • CSS variables
  • Keyframes
  • Filter
  • SVG

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

An <article> with tabIndex 0 and an aria-label ("A pocket with a curious creature peeking out"); focus lifts the card as hover does, and the drawing is aria-hidden.

Reduced motion

The transitions and loops stop and the card jumps straight to its final state.

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

More cards

See all
StampGet code
StashGet code
Folder colour
TintGet code

Signups

Last 8 weeks

4,812+18%

AcetateGet code