Free tool

Scroll animation frame budget calculator

Enter the frame count, resolution and format of your image sequence. See what it weighs, how long it takes to download on a phone, and how much memory the decoded frames need, before you generate a single frame.

Format
Quality

Per frame

51 KB

estimate, WebP medium

Total

12 MB

likely 7.1 MB–17 MB

Preview tier

0.7 MB

120 frames at 640 × 360

Decoded memory

475 MB

60 frames × 7.9 MB

ConnectionFull setPreview tier
Slow 4G1.6 Mbit/s, the Lighthouse mobile test62 s3 s
Good 4G10 Mbit/s, assumed10 s< 1 s
Fast broadband50 Mbit/s, assumed2 s< 1 s
  • On slow 4G the full set takes about 62 s. Load a preview tier first (about 3 s here) so the page scrolls before the sharp frames arrive.
  • Kept decoded all at once, these frames would need 1.9 GB of memory. Keep only the frames near the scroll position decoded (475 MB for 60 frames) and release the rest.

How the estimate works

An encoded frame’s size depends on its pixel count and on how hard the encoder compresses it, which we express as bits per pixel. The calculator multiplies your resolution by a typical bits-per-pixel figure for photographic footage:

Bits per pixel used for estimates. Real footage can land well above or below.
FormatLowMediumHigh
WebP0.12 bpp0.2 bpp0.35 bpp
AVIF0.08 bpp0.14 bpp0.24 bpp
JPEG0.2 bpp0.35 bpp0.6 bpp
PNGabout 10 bpp (lossless)

These are starting points, not measurements. Grain, fine detail and fast motion push sizes up; soft focus and flat colour push them down. That is why the total is shown as a range. For an exact figure, convert a sample with the video to image sequence converter: it reports the average frame size and links straight back here with your numbers filled in.

Reading the download times

Download time is the total size divided by the connection speed. Slow 4G uses the 1.6 Mbit/s that Lighthouse applies in its mobile test (Lighthouse throttling docs), so it is a fair stand-in for how PageSpeed Insights sees your page. The other two rows are round numbers for a decent mobile connection and home broadband.

The figures ignore latency and assume one stream of data, so treat them as a floor for slow connections. What a visitor feels is the time until the page scrolls, which is why the preview tier matters more than the full total: a small, sparse set loads first and the sharp frames replace it as they arrive.

The hidden budget: decoded memory

A compressed frame is small on the network but large once the browser decodes it for drawing: four bytes per pixel. A 1920 × 1080 frame becomes about 7.9 MB in memory, whatever format it was downloaded in. Hold a few hundred of those at once and a phone browser can run out of memory and crash or reload the tab.

The fix is to keep only the frames near the scroll position decoded and to release the rest. Edok’s Kestra template does exactly that: HD frames load nearest the scroll position and frames far away are released from memory. Set “Frames kept decoded” to the window your player uses to see what it costs.

Four ways to cut the budget

  1. Use fewer frames. Scroll picks the frame, so a slow camera move rarely needs more than 15 frames per second of footage.
  2. Use smaller frames. Going from 1920 to 1280 px wide cuts the pixels, and roughly the bytes, by more than half.
  3. Load in tiers. A light preview set first, the sharp set after. The page becomes usable in the time the preview takes.
  4. Ship portrait frames to phones. A 9:16 set at 720 px wide has under half the pixels of a 1920 × 1080 frame and fills a phone screen properly.

Real numbers from shipped templates

TemplateFramesTotal frame sizeAverage per frameMobile score
Kestra44326 MB60 KB90 / 100
Orbitly69116.59 MB25 KB72 / 100

The average is the total divided by the frame count. Both templates ship several hundred frames and load them progressively rather than all up front. The mobile performance guide covers the loading strategy in detail.

FAQ

Questions, answered.

The questions people ask most about this topic.

01How accurate is the estimate?

It is a rough guide: real frames can be 40% smaller or larger than the estimate depending on the footage. Enter a measured average per frame for an exact total.

02What is a good total size for a scroll sequence?

There is no single number. What matters is how fast the page becomes scrollable on a slow connection, so aim for a preview tier that loads in a few seconds on slow 4G and stream the rest.

03Should I use WebP or AVIF?

Both are much smaller than JPEG. AVIF usually compresses further but encodes more slowly; WebP is simpler to produce, including in the browser. Measure both on your own footage if every kilobyte counts.

04Why does decoded memory matter?

Browsers decode each frame to four bytes per pixel before drawing it. Hundreds of decoded full-HD frames can exhaust a phone’s memory, so players keep only the frames near the scroll position decoded.

05Where does the Slow 4G speed come from?

It is the 1.6 Mbit/s download speed Lighthouse uses for its default mobile test, the same test behind PageSpeed Insights’ lab score.

Want the scroll player too?

Every template ships the canvas player, frame tiers and phone frames, ready for your sequence.