Build a scroll-driven image-sequence animation
Turn a folder of frames into a scroll animation, with progressive loading, a reduced-motion alternative and checks for missing frames.
By Alan Brown
Scroll-linked animations — the ones where a product spins or assembles itself as you scroll — are just a folder of images being swapped on a canvas. Here's the whole build.
- 1️⃣ Generate a start frame and an end frame in Google Flow: labs.google/fx/tools/flow. Same lighting, same background, same camera distance — only the thing you're animating changes.
- 2️⃣ Frames to Video. Start image in the first slot, end image in the last, then prompt the motion. Lock the camera and keep the speed constant: drift shows up as jitter when the frames are scrubbed, and easing makes the scroll feel like it's sticking.
- 3️⃣ Split the clip into stills at ezgif.com/video-to-jpg — 30fps, then download the frames as a ZIP. A 5-second clip gives roughly 150 frames. Reduce the frame rate or resolution if the download is too heavy for mobile. PNG export is also available, but it does not remove the background.
- 4️⃣ Unzip the folder into Claude, Cursor or any AI coding tool, and paste the prompt below.
- 👇 The build prompt is below. The two Flow prompts are under "More from these videos" at the bottom of the page.
Context & limitations
Check the active model, supported first-and-last-frame option and credit cost in Flow before generating. See support.google.com/flow/answer/16352836.
The finished effect is a sequence of still images controlled by scrolling. Your AI coding tool writes the code; generation time, revisions and testing vary.
Do this yourself
Progressive loading, error handling and a static fallback make the effect more usable than waiting for every frame before showing anything.
Generate the start and end frame
Shared references and composition help consistency; check the two frames before generating the transition.
Turn the two frames into the motion clip
A fixed camera and a steady rotation suit a sequence that will be scrubbed by scrolling. Check the generated clip for jumps.
Want to build this with a teacher?
Pathwise Academy runs small, hands-on AI classes in Singapore for ages 10–17 and adults.

