Build a Scroll-Driven Canvas Video Animation for a Website
Convert a supplied video into optimized desktop and mobile frame sequences and a GSAP-powered demo page that synchronizes animation with scrolling.
Example outputs
Prompt template
- Format
- Text
- Inputs
- SourceVideo (video) · Required
- Outputs
- DemoPageAndCode (code, html) OptimizedFrameAssets (image)
Use the supplied video to build a demo webpage with a scroll-driven animation rendered on a canvas.
- Extract the video into individual frames and optimize them for web delivery.
- Create separate, smaller frame assets for mobile devices and a higher-resolution set for desktop.
- Use GSAP to synchronize the canvas animation with scrolling. Do not use a <video> element: video playback may not stay synchronized with scrolling on iPhones.
- Load the first frames immediately so the animation can start promptly; load the remaining frames progressively in the background rather than all at once.
- Choose and implement the necessary tools and scripts. Make the scroll-section length and animation response speed easy to adjust.
- Run the demo locally, check that the animation works, and explain how to integrate the finished block into my website.
What you'll create
The demo webpage synchronizes extracted frames with scroll through GSAP. Progressive loading starts the sequence promptly while adjustable section length and response speed support integration.
Frequently asked questions
Does it use a video element for playback?
No. Frames render on a canvas.
Are all frames loaded immediately?
No. Initial frames load first and the rest load progressively.
Comments
Tried this prompt? Share what you made, compare results, or ask a question