Skip to content
All effects

Scroll progress timeline

A vertical line that fills up as you scroll, and every step lights up when you reach it.

Scroll

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

The prompt

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.

What it is

A timeline where the line draws itself while you scroll. A dot travels down at the middle of your screen, and every step it passes lights up.

When it works

Programs, roadmaps, a process in weeks. I use it for the curriculum on the Pagebuilder Exit Challenge page. It turns a plain list of weeks into something that shows progress, and progress is exactly what a curriculum is about.

Get it right

  • Keep the dot at the middle of the screen. That is where people read.
  • Make the active steps clearly stand out from the ones still to come.
  • Short text per step. The movement does the work.

Also called

  • Scroll-driven timeline
  • Progress line on scroll
  • Curriculum path
  • Vertical timeline with fill

More effects.

All effects