Guide · Planning

Image sequence vs video vs three.js: choosing a technique for a 3D scroll site

By Md Mahafuj Alam · Updated

An image sequence drawn to a canvas gives the smoothest, most predictable scrub of real footage, at the cost of many files. A scrubbed video element is one small file, but smooth seeking depends on how the video is encoded and varies by browser. A real-time three.js scene is fully interactive and resolution-independent, but realism costs far more build effort.

The three techniques in one paragraph each

Canvas image sequence. A video is exported as hundreds of still frames (JPEG, WebP or AVIF). The page preloads them and, on every scroll update, draws the frame that matches the scroll position onto a <canvas>. Scrolling back draws earlier frames. Nothing is decoded as video; each frame is just an image.

Scrubbed video. The page holds a single <video> element, paused, and sets its currentTime from the scroll position. The browser seeks and decodes the frame at that time.

Real-time WebGL or three.js. There is no footage. The page builds a 3D scene from models, textures, lights and shaders, and scroll drives the camera or object positions. Every frame is rendered live by the visitor’s GPU.

The published Motion templates cover all three families. Kestra and Orbitly are image sequences of 443 and 691 frames. MANJARI is a cinematic WebGL scroll story built from AI images, with no video.

Scrub smoothness: why video seeking depends on keyframes

Compressed video does not store every frame as a full picture. Most codecs store a full keyframe (an I-frame) every so often and encode the frames in between as differences from their neighbours. The stretch from one keyframe to the next is the group of pictures, or GOP. Long GOPs are what make video files small.

They are also what makes scrubbing hard. To show a frame halfway through a GOP, the decoder has to start at the previous keyframe and decode every frame up to the target. When playback runs forwards that cost is spread out. When scroll jumps the playhead around, each seek can pay it again, and scrolling backwards is the worst case. The result is a scrub that stutters or lags behind the finger.

The fix is all-intra encoding: every frame is a keyframe, so any seek decodes exactly one frame. With ffmpeg and libx264 that means a GOP size of 1:

All-intra H.264 for scrubbingbash
ffmpeg -i input.mp4 -c:v libx264 -g 1 -crf 20 -pix_fmt yuv420p -an -movflags +faststart scrub.mp4

The trade-off is size: without inter-frame compression the file grows a great deal, which eats into the main advantage of video. Browser behaviour also differs. MDN notes that fastSeek() trades precision for speed, while setting currentTime seeks precisely. How fast that precise seek is depends on the browser’s decoder, so a scrub that feels smooth in one browser can lag in another.

An image sequence avoids the problem. Once a frame is loaded and decoded, drawing it costs the same whichever direction the visitor scrolls. A three.js scene has no seeking at all; smoothness depends on whether the GPU can render the scene at the display’s frame rate.

File size and loading

A normally encoded video is the smallest way to ship footage, because inter-frame compression removes the redundancy between similar frames. An image sequence compresses each frame on its own, so the same footage is heavier. Real numbers from the live templates: Kestra’s 443 frames total about 26 MB and Orbitly’s 691 frames total about 16.59 MB.

An image sequence has a loading advantage that makes up for much of that weight: it can load progressively and selectively.

  • Load a sparse set of frames first so the scrub works early, then fill the gaps.
  • Use tiers. Kestra loads light preview frames first, then streams in 1920 × 1072 HD frames, loading HD frames nearest the scroll position and releasing far frames from memory.
  • Serve different frames to phones. Kestra and Orbitly both ship dedicated portrait frames.

A three.js scene can be the lightest of the three if it uses simple geometry and procedural materials, or the heaviest if it relies on detailed models and large textures. Its size depends on its assets, not on the length of the story.

Mobile behaviour

Video on iOS. WebKit’s video policies for iOS allow a video to autoplay without a user gesture if it is muted or has no audio track, and allow inline playback only with the playsinline attribute; without it, video on iPhone requires fullscreen. A scrubbed video should therefore be muted, carry playsinline, and ideally have its audio track removed (the -an flag above). The same article notes that autoplaying videos that are not visible do not start, and pause when scrolled out of view. A scrubbed video is paused and seeked rather than played, but it still needs these attributes to render inline.

Image sequences on phones. The main risk is memory, not decoding. Hundreds of decoded full-resolution frames can exceed what a phone browser tolerates. Smaller portrait frames, tiered loading and releasing frames far from the scroll position keep this in check.

three.js on phones. Mobile GPUs vary widely. A scene that runs at full frame rate on a recent phone can drop frames on an older one, and sustained GPU load drains the battery. Expect to lower pixel ratio, shadow quality and post-processing on small screens.

Realism, build effort and customisation cost

Realism. Image sequences and video show whatever the footage shows. If the footage is photoreal, the site is photoreal, and AI video models can now produce that footage from prompts. Real-time three.js realism is bounded by what a browser GPU can render in a few milliseconds per frame, so photoreal scenes take careful modelling, lighting and baking.

Build effort. The scrub code for an image sequence or a video is small and well understood; most of the effort goes into producing good footage. A three.js scene needs 3D assets, lighting, camera paths and performance tuning, which is specialist work.

Customisation cost. This is where the trade flips. Changing a footage-based story means generating new footage and re-exporting frames. Changing a three.js scene can be as cheap as editing a colour or swapping a texture, and the scene can react to the pointer, adapt to any aspect ratio and render text in 3D. Footage-based sites can still restyle around the footage: Kestra uses a WebGL shader to turn its footage into an ink drawing, and Orbitly keeps its colours in CSS variables.

SEO and Largest Contentful Paint

None of the three techniques puts readable text into the visuals, so in every case the headings and copy should be real HTML above or beside the animation. That is what search engines index.

For Largest Contentful Paint, web.dev lists the element types LCP considers: images, <video> elements (using the poster image or first displayed frame), elements with a CSS background image and block-level text. <canvas> is not on the list. A canvas-based image sequence or three.js scene therefore does not become the LCP element itself; LCP falls on the largest qualifying element instead, often the headline or a poster image. A scrubbed video can become the LCP element, so its poster image needs to load quickly.

In practice, design the first screen so its largest element is a fast-loading headline or a small poster image, whichever technique sits behind it. A good LCP is 2.5 seconds or less according to web.dev. The guide to Core Web Vitals for animated websites covers the rest.

Side-by-side comparison

How the three techniques compare, reasoned from how each one works
Canvas image sequenceScrubbed videothree.js / WebGL
Scrub smoothnessConsistent in both directions once frames are loadedDepends on keyframe interval and browser; all-intra helpsDepends on GPU keeping up with the scene
File sizeHeaviest for the same footageSmallest (normal encoding); large if all-intraDepends on models and textures
LoadingProgressive and selective: tiers, nearest-firstOne file; seeking needs the right range bufferedScene must load before it renders
MobileWatch memory; use portrait framesNeeds muted and playsinline on iOSGPU and battery limits; reduce quality
RealismPhotoreal if the footage isPhotoreal if the footage isLimited by real-time rendering
Build effortLow code effort; footage is the workLow code effort; encoding needs careHigh; specialist 3D work
CustomisationNew footage for big changesNew footage for big changesCheap to change, interactive
LCPCanvas is not an LCP candidateVideo poster or first frame can be LCPCanvas is not an LCP candidate

When to choose which

  • Choose an image sequence when the story is real or photoreal footage with one camera move, and smooth two-way scrubbing matters more than total download size. This is the default for cinematic scroll stories, and the approach Kestra and Orbitly use.
  • Choose a scrubbed video for short, forgiving sequences where download size matters most, or as a lightweight prototype while the footage is still changing. Encode it all-intra and test scrubbing backwards in every target browser.
  • Choose three.js when the subject is abstract or stylised, when visitors should interact with it, or when the scene must change often without new footage.

Decide this during planning, because it changes what you generate: a video, a set of still images or 3D assets. The guide on planning a scroll story website covers the storyboard, and the pillar guide, how to build a 3D website with Claude, walks through the image-sequence build end to end. Finished examples of each approach are in the Motion catalogue.

FAQ

Questions, answered.

The questions people ask most about this topic.

01Why does my scroll-scrubbed video stutter?

Most videos are encoded with keyframes spaced far apart. Seeking to a frame between keyframes means decoding from the previous keyframe, and scroll triggers many such seeks, especially when scrolling backwards. Re-encoding with every frame as a keyframe (all-intra, for example ffmpeg -g 1) makes each seek decode a single frame, at the cost of a much larger file.

02Is an image sequence heavier than a video?

For the same footage, yes, because each frame is compressed on its own. It can still load well: light preview frames first, HD frames nearest the scroll position, and separate portrait frames for phones. Kestra ships 443 frames at about 26 MB and Orbitly 691 frames at about 16.59 MB.

03Does a video need special attributes to scrub on iPhone?

It should be muted and carry the playsinline attribute. WebKit allows inline video on iPhone only with playsinline, and allows autoplay without a gesture only for muted video or video with no audio track.

04Can a canvas animation be the LCP element?

No. web.dev lists images, video elements, elements with CSS background images and block-level text as LCP candidates, and canvas is not among them. LCP will be measured on the largest qualifying element, often the headline or a poster image.

05Can I build a 3D scroll site without video?

Yes. A WebGL or three.js scene renders everything live, and a story can also be built in WebGL from still images. MANJARI is a cinematic WebGL scroll story built from AI images with no video.