# A scroll video, frame by frame: a storyboard

> Twelve frames of a recorded page scroll, where sticky bars and animations glitch, and the frame counts and file sizes of MP4, WebM and GIF, measured.

Storyboard by Serghei Pogor, founder of CurlShot (https://curlshot.com/about/serghei-pogor). Published 30 November 2026. Page for people: https://curlshot.com/blog/website-scroll-video-storyboard

A scroll video of a page is a list of frames: CurlShot puts the page at each scroll position, captures it and encodes the frames. An 8 s, 24 fps video of the test page was 192 frames, 15 resting on the top, 158 moving and 19 resting on the bottom, and the MP4 was 403 KB. Scroll-driven things (sticky bars, parallax) are filmed exactly; things that run on the page's own clock (timers, fades) run as fast as the capture does.

## Key facts

- An 8 s video at 24 frames per second has 192 frames. The scroll moves at most 35 px between two of them, so no frame skips content.
- CurlShot sets the page to each scroll position and captures it, so every frame was within 12 px of its plan in the test (171 of 192 within 1 px on a quiet machine; the 12 px is the page's own last pixels). The page's clock runs at capture speed, not video speed: the 2 s carousel moved 35 times in an 8 s video on a busy machine and 10 times on a quiet one.
- The same MP4 request gave 397,403, 403,062, 414,081 bytes three times, because the frames depend on the page clock. With CSS animations off it gave 366,188 and 364,765.
- A GIF is the only format whose size follows the frame count: 2.18 MB for 120 frames at 640 x 360, against 403 KB for the MP4 at 1280 x 720.
- A page with scroll-snap: y mandatory gave 17 different positions in 80 frames, and the video ended 720 px above the bottom.

## The storyboard
Twelve frames of one 8 s, 24 fps MP4 of a test page 5,740 px tall in a 1280 x 720 window, recorded on 12 November 2026.
| Frame | Time | Scroll | Header | MP4 bytes | What to see |
| --- | --- | --- | --- | --- | --- |
| 0 | 0.00 s | 0 px | 72 px | 40,820 | The page at rest on its top. This one frame is 40,820 bytes, a tenth of the whole MP4: the encoder stores it whole and everything after it as changes. |
| 12 | 0.50 s | 0 px | 72 px | 111 | Nothing has moved. The frame costs 111 bytes: only the spinner in the corner turns. |
| 15 | 0.63 s | 1 px | 72 px | 122 | The scroll starts at 0.6 s. The eased curve moves 1 px in its first frame, then 3, 6, 9. |
| 24 | 1.00 s | 132 px | 52 px | 7,907 | The sticky header has shrunk from 72 to 52 px and covers the headline. The hero stripes moved twice (page and parallax layer), so this frame is one of the most expensive. |
| 48 | 2.00 s | 949 px | 52 px | 2,298 | The three cards that fade in on scroll are fully drawn (their text is above the cut): the renderer's pre-scroll had used up the effect. |
| 72 | 3.00 s | 1,775 px | 52 px | 965 | A side box with position: sticky holds its place while the page passes under it, and the counters read 12,480, 318 and 40: they counted up during the pre-scroll, so the video never shows them counting. |
| 96 | 4.00 s | 2,601 px | 52 px | 450 | The sticky "Care guide" title has not reached the top yet. A frame with only text and one slow animation costs 450 bytes. |
| 120 | 5.00 s | 3,426 px | 52 px | 3,536 | The header and the stuck "Care guide" title cover 169 of the 720 px, 23% of the frame, while the paragraphs scroll in the gap. |
| 144 | 6.00 s | 4,252 px | 52 px | 387 | Four lazy pictures are there because the pre-scroll loaded them. Noise pictures like these are the most expensive thing on the page. |
| 168 | 7.00 s | 5,003 px | 52 px | 412 | The scroll slows into the footer, 17 px from the end of the page. |
| 180 | 7.50 s | 5,020 px | 52 px | 127 | The video rests on the last screen for the final 22 frames, about 0.9 s. |
| 191 | 7.96 s | 5,020 px | 52 px | 207 | Frame 191 of 192 shows the same screen. At 24 frames per second the video is 8.0 s long. |
## Where the 192 frames go
15 frames rest on the top, 158 move and 19 rest on the bottom. The biggest step between two frames is 35 px, under a twentieth of the window. The renderer plans this with the same function as the lab.
## Which clock the page runs on
The renderer never takes a frame before its time in the video, but it can take it later. Page animations run on the page's clock, so they run as fast as the capture does. The carousel of the test page moves on every 2 s of page time.
| Recording | Frames | Video | Page clock | Machine load | Carousel moves |
| --- | --- | --- | --- | --- | --- |
| GIF, 5 fps | 40 | 8 s | 7.9 s | 4.9 | 4 |
| MP4, 10 fps | 80 | 8 s | 9.9 s | 7.6 | 5 |
| MP4, 24 fps | 192 | 8 s | 20.6 s | 3.8 | 10 |
| MP4, 24 fps, busy machine | 192 | 8 s | 72.2 s | 22.9 | 35 |
| MP4, 30 fps | 240 | 8 s | 25.9 s | 4.1 | 13 |
An animation of 0.3 s (the header shrink) was caught in 1 frame, and a 0.6 s fade in 2 to 4 frames, where 14 would show it in step.
## Four things that went wrong
**Sticky bars.** The header and one sticky title covered 169 of 720 px, 23% of the frame, in frame 120.
**Effects used up.**
| Recording | Frames mid-fade | Frames with a block not yet in | Frames with a counter below final |
| --- | --- | --- | --- |
| Default: pre-scroll, then record | 0 | 0 | 1 |
| full_page_scroll off | 13 | 108 | 72 |
| Blocks fade out when they leave | 22 | 192 | 2 |
**Scroll snap.** With scroll-snap-type: y mandatory, 80 frames showed 17 different scroll positions, and the video ended at 4,300 px, not 5,020 px.
**Smooth scrolling.** html { scroll-behavior: smooth } changed nothing: every frame was at its planned position, the last 12 px aside.
## File sizes
| Format | Frames per second | Frame size | Frames | Bytes |
| --- | --- | --- | --- | --- |
| MP4 (H.264) | 10 | 1280 x 720 | 80 | 414,614 |
| MP4 (H.264) | 24 | 1280 x 720 | 192 | 403,062 |
| MP4 (H.264) | 30 | 1280 x 720 | 240 | 419,810 |
| WebM (VP9) | 10 | 1280 x 720 | 80 | 688,087 |
| WebM (VP9) | 24 | 1280 x 720 | 192 | 579,775 |
| WebM (VP9) | 30 | 1280 x 720 | 240 | 780,453 |
| GIF | 5 | 640 x 360 | 40 | 834,200 |
| GIF | 10 | 640 x 360 | 80 | 1,476,938 |
| GIF | 15 | 640 x 360 | 120 | 2,176,868 |
The same MP4 request three times gave 397,403, 403,062, 414,081 bytes. With CSS animations and transitions off it gave 366,188 and 364,765. The MP4 cost 40,820 bytes in its first frame and 1446 bytes at the median moving frame; a GIF cost about 18,141 bytes a frame.
## What to change
| Problem | Change | Cost |
| --- | --- | --- |
| Animations run faster than in the browser | Switch them off with a styles rule such as *, *::before, *::after { animation: none !important; transition: none !important }, or record at video_fps 10, where capture kept close to the video clock in the lab (1.0 to 1.4 times). | The page loses its motion. At 10 fps the scroll is steppier: up to 83 px between frames instead of 35. |
| Header and sticky bars cover content | Hide the bar with hide_selectors. | The hidden bar is missing in every frame, so the video no longer shows the page as a visitor sees it. |
| Fade-ins and counters are already done | Leave full_page_scroll on for lazy pictures. Turn it off only when the effect is the point of the video, and expect pictures that load late to be missing. | With it off, lazy pictures can be missing, as the lazy-image test showed. |
| The video jumps from section to section | Remove scroll-snap with a styles rule such as html { scroll-snap-type: none !important }. | The snap rule is the page's own design, and it is gone in the video. |
| The file is too large | Lower video_fps for a GIF (its size follows the frame count), set image_width, or lower image_quality for MP4 and WebM. | A smaller GIF is steppier. For MP4 and WebM, fewer frames did not make the file smaller in the lab. |
```bash
curl "https://curlshot.com/screenshot?access_key=YOUR_ACCESS_KEY\
&url=https://example.com&format=mp4\
&video_duration=8&video_fps=10\
&styles=*%7Banimation%3Anone!important%3Btransition%3Anone!important%7D" \
  --output page.mp4
```
## How it was run
One local test page, 5,740 px tall in a 1280 x 720 window, was recorded by the video code of the renderer (the function that puts the page at each frame's scroll position, captures it and pipes it to ffmpeg 6.1.1), run unchanged in plain Playwright 1.63.0 with Chromium 153.0.8010.12. Before each recording the renderer's own pre-scroll was run on the page, as the renderer does before a video. The log of each frame (scroll position, header height, carousel slide, blocks mid-fade) was read from the page just before the frame was captured. Frames were pulled back out of the files with ffmpeg and per-frame bytes with ffprobe. The host was shared with other jobs, so the machine load ran from 3.8 to 22.9 while recordings ran. Bytes and frame counts do not depend on it; seconds do, and the page-clock table says which load each row ran at. No request was sent to the API of CurlShot in this run.

## Questions

### How many frames does a scrolling video of a website have?

Seconds times frames per second. In the test, 8 s at 24 fps gave 192 frames, 15 resting on the top, 158 scrolling and 19 resting on the bottom. A GIF from CurlShot is limited to 15 frames per second, so the same 8 s gave 120.

### Why do animations in my scroll video look faster than on the site?

The page's clock runs while each frame is captured, and a capture takes longer than a frame lasts. In the test the page clock ran 2.6 times as fast as the video at 24 fps on a quiet machine, 9 times as fast on a busy one, and at about the speed of the video at 10 fps.

### Does a sticky header show up in a scroll video?

Yes, in every frame: the page really scrolls. In the test the header and one sticky title covered 23% of a frame. Hide the bar with hide_selectors if it covers content.

### Which video format is smallest for a page scroll?

MP4 was 403 KB, WebM 580 KB and GIF 2.18 MB for the same 8 s of the test page, at the sizes CurlShot gives each format by default (GIF 640 pixels wide).

### Does a lower frame rate make an MP4 smaller?

Not in the test: the MP4 was 415 KB at 10 fps, 403 KB at 24 and 420 KB at 30. Fewer frames mean bigger steps between them, and a video encoder pays for change. A GIF does get smaller with fewer frames.

## Sources

1. MDN Web Docs, "scroll-snap-type": https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-type (checked 12 November 2026)
2. MDN Web Docs, "Element: scrollTo() method": https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo (checked 12 November 2026)
3. MDN Web Docs, "scroll-behavior": https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior (checked 12 November 2026)

## Go deeper

- [Record a scrolling video of a website](https://curlshot.com/tools/website-scrolling-video)
- [Scrolling videos](https://curlshot.com/docs/video)
- [Waiting and timing](https://curlshot.com/docs/waiting)
- [Pricing](https://curlshot.com/pricing)

## Read next

- [Record a web page as video: MP4, WebM or GIF](https://curlshot.com/blog/website-video-mp4-webm-gif.md): How to record a web page scrolling from top to bottom, and which file to make: MP4, WebM or GIF compared, with measured file sizes and where each one plays.
- [Lazy images and full-page captures, measured](https://curlshot.com/blog/lazy-images-full-page-scroll-test.md): Five ways a page loads pictures on scroll, seven scroll rules, 105 runs in Chromium: which full-page captures come back with every picture.
- [Why website screenshots look wrong, and the fixes](https://curlshot.com/blog/why-website-screenshots-look-wrong.md): A field guide to 11 ways a website screenshot goes wrong, from blank lazy images to cookie banners and cut-off pages, with the cause and the fix for each.
