Add a word-by-word scroll highlight to [the statement I point to]: the text lights up word by word as you scroll through it. Behaviour: the section gets extra height (about 200vh) with a sticky inner area of 100vh that holds the statement. Split the text into words with JavaScript and wrap each word in a span. Keep the full sentence readable for search engines and screen readers (put it in an aria-label on the container and hide the spans with aria-hidden). Every word starts at about 15% opacity. The reveal is scrubbed by the scroll: it starts as soon as the statement comes into view (section top at about 75% of the viewport) and finishes just before the section unpins. Map that scroll range to the number of lit words, so the words go to full opacity one by one in reading order, and run backwards when scrolling up. The word that is being lit gets a partial opacity, so it feels smooth instead of stepping. No library. Respect prefers-reduced-motion by showing the whole text at full opacity. 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.
Scroll-scrubbed video
A video that plays forward and backward with the scroll, so the visitor controls the timeline.
This is the real effect. Scroll or move your mouse inside the frame to try it.
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- ScrollPrompt
- ScrollPrompt
Add a scroll progress timeline effect to [the list of steps I point to]: a vertical line that fills in as you scroll, and every step lights up when the line reaches it. Visual: a thin vertical track runs next to the steps, with a marker per step. On top of the track: a fill line, with a dot at the end of the fill. Behaviour: the dot always sits at the vertical middle of the screen while you scroll through the list, and the fill grows from the top of the track down to that dot. Clamp it so it never goes past the start or end of the track. Every step whose marker has passed the middle of the screen becomes active: its marker and text switch from the inactive to the active state, with a short transition. Use plain JavaScript with requestAnimationFrame on scroll, no library. On mobile (from 360px) the track stays on the left and the text wraps. Respect prefers-reduced-motion by removing the transitions. 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.
- ScrollPrompt
Add a sticky footer reveal to this website (at the end of the page the content lifts off and uncovers a fixed footer underneath, also called a curtain footer). Behaviour: the main content sits in a wrapper with a solid background, position relative and z-index 1. The footer gets position: fixed at the bottom of the viewport with z-index 0. Give the main wrapper a margin-bottom equal to the footer height (measure it with JavaScript on load and on resize), so at the end of the page the content slides up and reveals the footer behind it. Add a subtle parallax: while it is uncovered, the footer content moves up about 60px and fades from 30% to full opacity. Details: if the footer is taller than the screen (often on mobile), switch to a normal static footer. Keep the footer links reachable by keyboard and never hidden behind the content. Respect prefers-reduced-motion by dropping the parallax. 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.