REFERENCE
- Gallery page: https://magpui.com/en/i/tear-open-holographic-card-pack-50a57d
- First frame (image): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/tear-open-holographic-card-pack-50a57d/shot.jpg
- Clip (mp4): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/tear-open-holographic-card-pack-50a57d/clip.mp4
- Original post: https://x.com/Yassshhu/status/2119775071082557870 by @Yassshhu
Before building, download the first frame and look at it. If ffmpeg is available, download the clip and extract frames (ffmpeg -i clip.mp4 -vf fps=2 frame-%02d.png), then study the motion frame by frame. Match what you see; the text below describes it, the frames are the truth.
ASSETS
This needs real artwork, not shapes drawn in code. Use the files the user gives you (ask where they are). If you have an image generation tool, generate them with these prompts; otherwise leave clearly marked placeholders.
- Glossy star mascot: Cute four-pointed star mascot with a small smiling face and pink blush, iridescent pearlescent chrome material with rainbow reflections, soft studio lighting, 3D render, centered, transparent background, 1:1
- Card characters set: Set of five cute glossy 3D toy characters for collectible cards: a red blob, a ringed planet, a lime cube, a faceted purple gem, a golden star, each with simple kawaii faces, soft studio lighting, 3D render, each on transparent background, 1:1
BUILD: A collectible card pack interaction. A glossy foil pack floats in the center of a warm off-white page. The user drags across the crimped top edge (or clicks) to tear it open; the strip rips off, five holographic character cards shoot up out of the pack in a fan with a burst of confetti, then settle into a neat horizontal row. Each card tilts toward the cursor with a moving rainbow foil sheen. A small "Open another pack" pill under the row swaps in a fresh pack in a new color. It should feel tactile, joyful and a little toy-like.
DESIGN SYSTEM: Background #EDEBE4 with a soft radial lighten in the center. Pack: about 190x260px, saturated solid color (cobalt #1F3BFF, hot pink #F0359A, alternates per pack), zig-zag crimped top and bottom edges (8px teeth), subtle vertical foil wrinkles via a gradient and a glossy highlight band; white bold sans wordmark top left (28px, tight tracking), tiny 9px uppercase labels ("TEAR HERE ->", color name, "Card pack", "5 cards"), a large glossy 3D mascot in the middle; soft elliptical shadow 24px below the pack (rgba(0,0,0,0.18), blur 16px). Cards: about 120x170px, radius 10px, each with its own background (coral #FF8F7E, violet #4B2BD8 with stars, lime #D9F24A, purple galaxy #5B2DA8, gold sunburst #FFB020), a cute glossy 3D character in the upper two thirds, a white info strip at the bottom with name (Blip, Ringo, Cubit, Facet, Nova style, 12px semibold) and a tiny rarity tag. Gap between cards 14px. Button: white pill, 11px text, 1px border #E2DFD6, shadow 0 2px 6px rgba(0,0,0,0.08).
MOTION:
- Pack idle: float translateY 0 to -6px on a 2400ms sine loop, slight rotateY +-4deg following the cursor.
- Tear: dragging horizontally along the top 24px progressively peels the strip (clip-path along a jagged path that follows the pointer); past 70% the strip flies off up-right with rotate 25deg and fades over 400ms, cubic-bezier(0.22, 1, 0.36, 1).
- Burst: cards rise out of the pack (translateY 0 to -220px) and fan out (rotate -18deg to 18deg) over 520ms, stagger 60ms, cubic-bezier(0.34, 1.56, 0.64, 1); 60-80 confetti squares and ribbons (2-6px, card palette colors) explode outward with gravity over 1200ms; the empty pack drops and fades over 300ms.
- Settle: cards then glide into a centered row, rotate to 0, scale 1, 600ms spring (stiffness 220, damping 22); the button fades in after 400ms.
- Card hover: 3D tilt up to 12deg toward the cursor, scale 1.06, the foil gradient position tracks the cursor, 200ms ease-out.
- Open another: row slides down and fades (300ms), new pack drops in from above with a soft bounce (500ms).
SECTIONS: Parts and states: pack (idle, hover, tearing, torn), torn strip, confetti layer, five cards (hidden, bursting, settled, hovered), "Open another pack" button (hidden, visible, pressed scale 0.96).
IMPLEMENTATION: React + Motion (Framer Motion) for the pack, cards and springs; a canvas layer for confetti; CSS for the holographic sheen (a conic/linear rainbow gradient with mix-blend-mode: color-dodge or overlay plus a noise texture, background-position driven by pointer CSS variables). Pack and cards are DOM so they stay crisp. Keyboard: the pack is a button ("Open pack", Enter/Space triggers the full tear), cards are focusable with visible focus rings and tilt on focus; announce "5 cards revealed" via aria-live. prefers-reduced-motion: skip confetti and fan, crossfade the pack into the settled row over 200ms, no tilt. Cap confetti at 100 particles and stop the loop when done.
ADAPT TO THE PROJECT: Reuse the project's existing design tokens, components, buttons and fonts; map the pack and card colors to the closest existing tokens. Generate your own characters and pack artwork, never copy logos, brand names, photos or illustrations from the original; use placeholders.
SUCCESS CHECK:
- Dragging along the top edge visibly tears the strip and triggers the card burst with confetti; a click or Enter does the same.
- The five cards end in a centered row and each one tilts with a moving rainbow sheen on hover or focus.
- "Open another pack" resets to a new pack in a different color, and reduced motion gives a simple crossfade.