Scroll progress bar

Also called reading progress bar, reading indicator, or scroll progress

A thin bar at the top of a page that fills from left to right as the reader scrolls, showing how much of the article is left.

What is Scroll progress bar?

A scroll progress bar turns how far you have scrolled into the width of a bar, usually 3 to 4px tall and pinned to the top of the screen. It answers a quiet question during long reads: how much is left?

Use it on long articles, docs, and guides; on short pages it fills almost instantly and adds nothing. Animate it with transform: scaleX() and transform-origin: left, which the browser can update without recalculating layout, so it stays smooth on long pages.

CSS alone can drive it with animation-timeline: scroll() in browsers that support it, and Motion’s useScroll works everywhere. The bar is decorative, so mark it aria-hidden.

Often confused with

Progress bar
A progress bar shows how far along a task is, like an upload. A scroll progress bar shows how far down the page you have read.
All terms

Scroll-driven animation

An animation whose progress is tied directly to the scroll position, so it moves forward as you scroll down and rewinds as you scroll up.

Sticky header

A top bar that stays pinned to the top of the screen while the page scrolls underneath it, so navigation is always one click away.

Scale

A CSS transform that draws an element larger or smaller around its transform origin, without pushing neighboring elements.

Spring animation

An animation driven by simulated spring physics in place of a fixed duration and curve, so motion can overshoot, settle, and react naturally.