Let me read the current structure then build a genuine scroll-controlled 3D experience.
Build is clean ✅. Let me verify the final homepage flow and do a final quality check:
Perfect — clean production build ✅. Here's the complete InspectItem replacement:
InspectItem — Scroll-Controlled 3D Product Viewer
src/components/InspectItem.tsx — Replaces the previous CSS-flip card with a genuine CSS 3D hexagonal prism that rotates 360° as you scroll through the section. Inspired by Balenciaga / Celine / Apple product inspection pages.
How it works
300vh scroll runway pinned with a sticky viewport — as you scroll down, the 3D object rotates through a full 360°. Additionally, you can drag horizontally to add orbit offset on top of the scroll rotation, and the two blend together seamlessly.
3D Prism Construction
- 6 product image faces arranged at
rotateY(0° / 60° / 120° / 180° / 240° / 300°) each pushed out via translateZ by 65% of face width
- Each face has
backfaceVisibility: "hidden" so only the front-facing side is ever visible
- Real depth-of-field simulation: faces further from the camera get progressively
filter: blur(0→1.2px) and opacity: 1→0.6, mimicking a real camera lens
- Active face is highlighted with a
ring-2 ring-ring/40 glow border
- The entire prism is wrapped in a
perspective: 1400px container with preserve-3d
Scroll & Pointer Controls
- Scroll: Maps directly 0→1 from IntersectionObserver → full 360° rotation
- Pointer drag: Horizontal drag adds orbital offset (
dx * 0.4) on top of scroll rotation
- Zoom: Mouse wheel on the stage zooms the entire 3D object (0.7x → 1.5x)
- Combined angle =
scroll * 360 + pointerRot — both inputs blend seamlessly
Visual Polish
- Ambient
drift gradient blobs behind the stage
.grain overlay on the 3D stage for film texture
- Subtle architectural grid lines at
opacity-[0.03] for spatial depth
- Floor platform grid rendered as CSS 3D plane at
rotateX(70°) with perspective
- Shadow disc beneath the object that scales dynamically with rotation angle
- Scroll progress ring — SVG circle dasharray that fills as you scroll (0→100% with degree readout)
- Live angle readout on the info panel:
°147 · View 03 of 06
Right-Side Info Panel
Sticky sidebar with:
- Edition badge with pulsing live indicator
- Live rotation gauge — a compass-style SVG icon that physically rotates with the object in real-time
- 3 material hotspot cards — clickable toggles that expand to reveal craftsmanship details (hardware, edge paint, seal)
- Full spec table (leather type, lining, hardware, dimensions, weight, capacity)
- Provenance line with shield icon and atelier address
- Signature radial-glow CTA button with the full magnetic hover treatment
Two Pre-Selected Pieces (User Cannot Swap)
A pill toggle lets you switch between The Firenze Handbag and The Sartorial Coat — both pre-selected by the maison. Each loads its own 6 face images, 3 hotspots, and full spec table. The text clarifies: "Pre-selected by the maison · Scroll down to advance rotation."
Homepage Flow
Hero → Marquee → Collection → Showcase → InspectItem → Craft → Testimonials → Newsletter → Footer
Files built: src/components/InspectItem.tsx