REFERENCE
- Gallery page: https://magpui.com/en/i/pearl-fragrance-store-with-3d-bottles-8a8f63
- First frame (image): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/pearl-fragrance-store-with-3d-bottles-8a8f63/shot.jpg
- Clip (mp4): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/pearl-fragrance-store-with-3d-bottles-8a8f63/clip.mp4
- Original post: https://x.com/1bsfraja/status/2120105933623976076 by @1bsfraja
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.
BUILD: A small multi-page store for a fragrance house with three views: a home carousel of 3D bottles, a scent finder, and a product page with a slide-in bag. Every bottle is a round, squat flacon with a pearlescent, iridescent coating and a tall black cap, rendered in real-time 3D with soft reflections on a glossy black floor. The feel is dark, quiet luxury: lots of black space, small precise type, and the bottle as the only bright thing on screen.
DESIGN SYSTEM: Background #0B0B0C, surfaces #151517, hairlines rgba(255,255,255,0.08). Text #F2F2F2 primary, #8A8A8F secondary. Type: a clean geometric sans; product names 28-56px semibold, tight tracking; small 10-11px uppercase mono-style meta labels ("01 / EAU DE PARFUM / 50 ML"). Huge outline/ghost wordmark of the product name (e.g. 180px, #FFFFFF at 6%) behind the bottle. Top nav: small wordmark left, a segmented pill nav (active pill white with black text, radius 999px), search icon and "Bag (n)" right. Pill buttons: white "Add to bag $160" with a black circular arrow icon; size chips 30/50/100 ml as small outlined pills. Bottles: pearl base #E6E4F0 with iridescent shifts to lavender #B9A8F0, teal #8FD8D2 and pink #F2C2D8; darker variants (#2A2A33 with teal sheen) for other scents. Radii: 999px pills, 16px panels.
MOTION:
- Carousel: bottles sit on a horizontal arc; arrows or drag move to the next, the active bottle scales from 0.7 to 1 and moves to center while neighbors shrink and dim to 40%, 800ms cubic-bezier(0.65, 0, 0.35, 1); the ghost wordmark crossfades and slides 40px.
- Idle bottle: slow rotation about Y (one turn per 14s) so the sheen sweeps across; mouse move tilts it +-8deg.
- Scent finder: the sentence has toggle words (summer / winter, by day / at night, noticed / close to skin); clicking a word underlines it (underline grows left to right, 250ms) and the row of four mini bottles on the right reorders, with the best match scaling up and the others fading to 50%, 500ms spring.
- Product page enter: bottle drops in from 30px above with a fade, 600ms cubic-bezier(0.22, 1, 0.36, 1); details stagger 50ms.
- Bag: panel slides in from the right (translateX 100% to 0, 450ms cubic-bezier(0.32, 0.72, 0, 1)) while the page dims to 50%.
SECTIONS: (1) Home: nav, ghost product name, centered 3D bottle with two dimmed neighbors, bottom-left product name and notes, size chips and "Add to bag" bottom-right, slide counter "02 / 04" with arrows. (2) Scent finder "Find yours": large heading, the toggle sentence on the left, mini bottle row on the right, result card with name, one-line description and "View" pill. (3) Product page: breadcrumb, big bottle left on a ghost number ("N°3"), right column with name, one-line poetic description, notes chips, three size price cards (selected outlined), "Add to bag" pill, perks list (free samples, free shipping, refillable). (4) Bag drawer: item row with thumbnail and qty stepper, free samples radio chips, discovery set upsell, subtotal and a full-width white "Checkout" pill.
IMPLEMENTATION: Three.js (or React Three Fiber) for the bottles: a rounded lathe or imported low-poly bottle with MeshPhysicalMaterial (iridescence 1, iridescenceIOR 1.3, clearcoat 1, roughness 0.15) under an HDRI environment, a reflective floor (MeshReflectorMaterial or a planar mirror with blur). One shared WebGL canvas behind the DOM layout; pages and drawer are DOM with Motion for transitions. Cap DPR at 1.5 on mobile, pause rendering when the tab is hidden. prefers-reduced-motion: no auto-rotation or tilt, instant carousel swaps with crossfades. Keyboard: arrows move the carousel, toggle words are buttons with aria-pressed, the drawer traps focus and closes on Escape.
ADAPT TO THE PROJECT: Reuse the project's existing design tokens, components and fonts; map the pearl and accent tones to the nearest existing tokens. Model your own generic bottle, never copy logos, brand names, photos or illustrations from the original; use placeholders for names and copy.
SUCCESS CHECK:
- The home carousel moves between at least four 3D bottles with a visible iridescent sheen and floor reflection at 60fps on desktop.
- Toggling words in the finder sentence changes which bottle is highlighted as the match.
- "Add to bag" opens the right drawer with the item, and the whole flow works with keyboard only.