A React app with GSAP scroll-triggered video frame animation.
-
Install dependencies:
npm install
-
Install FFmpeg (required for frame extraction):
- Download from https://ffmpeg.org/download.html
- Add to your system PATH
-
Extract video frames:
npm run extract-frames
-
Start development server:
npm run dev
The app uses FFmpeg to pre-extract frames from the video as PNG images. These frames are then loaded and scrubbed on scroll using GSAP ScrollTrigger for smooth animation.
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.