CleanShot 2026-04-29 at 14.21.12.mp4

Prompt ๐Ÿ‘‡๐Ÿผ

I want to build a high-performance, cinematic scrollytelling web experience in React (using Vite, Tailwind CSS, Framer Motion, and GSAP). The aesthetic should be dark, immersive, and mindfulโ€”like a quiet twilight valley.

Here is the core feature: I have a video that I want to use as a scroll-driven background. Video Link: https://drive.google.com/open?id=1dIZdbeHXaMX7NAdJE9b_5MUZfs-KNF9e&usp=drive_fs

Please act as an expert frontend engineer and do the following:

1. Process the Video: First, download the video from the link provided and extract exactly 80 frames from it. Save them into the public/frames/ directory of the new project as frame_0001.jpg through frame_0080.jpg.

2. Setup the Project: Initialize a Vite React project with Tailwind CSS. Install the necessary dependencies: framer-motion (or motion/react), gsap, and lucide-react.

3. Build the Cinematic Scrubber Component (CinematicScrubber.tsx): Create a reusable React component that handles the scroll-driven frame sequence.

It should render a <canvas> element that covers the entire screen, fixed in the background (z-index 0).
Preload all 80 images on mount. Show a beautiful, minimalist loading screen with a progress bar and percentage until all frames are loaded.
Use window.requestAnimationFrame and canvas drawImage to render the correct frame based on the window's scroll position relative to the document height. Ensure the image uses an object-fit: cover equivalent logic so it fills the screen without stretching.
Add a subtle GSAP-powered mouse parallax effect: track the mouse position and shift the canvas slightly (e.g., up to 30px in any direction) based on where the cursor is, giving a 3D depth effect.
4. Add Ambient Audio: In the main App.tsx, implement a looping ambient soundscape (you can use a placeholder audio file named /ambient-night.mp3 in the public folder).

Attempt to autoplay it at 40% volume on load.
Add a floating toggle button in the top right corner using Lucide's Volume2 and VolumeX icons to let the user pause/play the audio.
5. Build the Scrollytelling Sections (The UI): Create a long, scrolling page (e.g., min-h-[500vh]) with several distinct sections layered over the canvas scrubber (z-index 20). Use Framer Motion (whileInView) to fade these elements in gracefully as the user scrolls down. The typography should heavily utilize elegant Serif fonts for headings and clean Sans-serif for body text.

Include these sections:

Hero: Big text saying "Be Still. Be Here." with a small animated "Scroll to Begin" indicator at the bottom.
The Invitation: A section with a quote: "Somewhere between the noise of notifications and the weight of tomorrow, there's a quiet clearing. This is it. No login. No subscription. Just a moment โ€” yours."
The Practice: A section titled "Three breaths. That's all it takes." featuring a grid of 3 minimal cards (Breathe, Notice, Release).
The Philosophy: A section explaining the concept of stillness.
Daily Anchor: A glassmorphism-styled card featuring a quote from Thich Nhat Hanh: "Walk as if you are kissing the earth with your feet."
The End / CTA: A final section saying "Come back whenever." with a prominent "Begin again" button. When clicked, this button should use Framer Motion's animate function to smoothly scroll the window back to the top (0) using spring physics (e.g., stiffness 60, damping 15).
Please generate the complete codebase, ensuring the styling feels extremely premium, polished, and responsive."