Shrink Wrap
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardShrinkWrap(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-shrink-wrapAbout this component
A new-in product card still sealed in shrink film: gloss runs across the plastic as you move over it and the corners are gathered in crinkles. Pull the tear strip and the film splits down the middle and both halves shrink back off the sides, leaving the matte card underneath.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers5
- Click
- Hover
- Mouse tracking
- State change
- Card
Techniques4
- Gradient
- Keyframes
- CSS variables
- SVG
Accessibility
Keyboard and screen readers
The tear strip is a button labelled Unwrap; the film is aria-hidden. Add to bag is disabled until the film is off, and Rewrap returns focus to the strip.
Reduced motion
The film is simply removed.
Use it in anything you build, commercial and client work included. Licence
More cards
See allAnimate a ball that is afraid of the floor.
Dark mode for charts
Every chart follows the theme, axis labels included.
Nov 12
Offline drafts
Write on the train; it syncs when you are back.
Oct 30
Search in a blink
Results now arrive as you type, even on big teams.
Oct 14
Shared folders
Invite anyone to a folder without a seat.
Sep 29
A new editor
Rebuilt from the ground up, and half the size.
Sep 3
With Mira Sol · Sat 23 Nov