Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardPocket(el) on the mounted element instead.
HTML
CSS
JavaScript
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-pocketAbout 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 allSignups
Last 8 weeks
4,812+18%
- Week 6: launch week, the peak.
- Week 3: outage.