Skip to content
All effects

Scroll-scrubbed video

A video that plays forward and backward with the scroll, so the visitor controls the timeline.

Scroll

This is the real effect. Scroll or move your mouse inside the frame to try it.

The prompt

Add a scroll-scrubbed video effect to [the section I point to]: the video plays forward and backward with the scroll, like on Apple product pages. Behaviour: the section becomes a tall wrapper with a sticky inner panel of 100vh, and the video fills that panel with object-fit: cover. Map the scroll progress through the wrapper (0 to 1) to video.currentTime. Smooth it by easing the current time toward the target every animation frame, and skip a frame while the video is still seeking, so it never stutters. The video is muted, paused, playsinline and preload metadata, and only loads when the section comes near the viewport. Any captions in the section fade in during their own part of the scroll and stay readable on top of the video. Video file: for smooth scrubbing it needs a keyframe on every frame or every few frames (for example ffmpeg with -g 1 or -g 5). Keep it short and under 5 MB. Accessibility: with prefers-reduced-motion, show a poster image and the captions as a normal list instead. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.

What it is

The video does not play by itself. Your scroll is the play button. Scroll down and it moves forward, scroll up and it rewinds. Apple made this famous on their product pages.

When it works

For a process or a product that tells a story in a few steps. On a solar panel site, for example, the roof gets its panels while you scroll. The visitor sets the pace, so they actually watch it.

Get it right

  • Export the video with a keyframe on (almost) every frame, otherwise scrubbing stutters.
  • Keep it short and light. A few seconds is plenty.
  • Load the video only when the section comes close.
  • Put the story in short captions on top, not in the video alone.

Also called

  • Scroll-controlled video
  • Video scrubbing on scroll
  • Scroll-linked video
  • Apple-style scroll video

More effects.

All effects