ScrollPremium

Progress Reveal Steps

Two movements in one block, each on its own scroll clock: a thin bar, pinned 8 px from the top, stretches from 0 to 100% over the area's whole travel (104 px in the demo, whose content barely outgrows the frame), while each step card rises 20 px and turns opaque as it crosses the bottom edge. CSS for the most part; a short script makes the bar follow where the browser cannot.

CSSJSProgressReveal

Updated

This effect is part of Effect.Labs — 846 vanilla effects, some free, some premium. Scroll has 74 effects, including 12 free. Explore the category →

3 usage examples

Servicing a sewing machine in four steps — a manufacturer's help page with a clickable contents list — Progress Reveal Steps example 1

① Servicing a sewing machine in four steps — a manufacturer's help page with a clickable contents list

WhenOn the left, a contents list of four steps; on the right, the matching sheets in a scrolling area. Clicking a step slides the area to its sheet: the bar moves on a notch, the next sheet rises into place.
WhyThe reader jumps from one step to another without losing the thread: the bar tells them how much of the procedure is behind them, and the rising sheet flags what has just come on screen.
SettingsLight theme (white cards, plum titles), bar #7a3b69 → #d9694c, cards 178 px tall so only one fits on screen, content at automatic height; 322 px area, 484 px of travel. Sliding to a sheet is done by the scene's script; in the capture, the clicks are replayed by that script.
Getting ready for a first night outdoors — mobile sheet from a camping-gear rental shop — Progress Reveal Steps example 2

② Getting ready for a first night outdoors — mobile sheet from a camping-gear rental shop

WhenAn advice sheet read with the thumb: six short tips, each with its pictogram, then a reminder of the rented gear. The bar under the title fills in as you go down.
WhyOn a small screen only two tips show at a time: the bar gives the total length of the sheet, and each tip that rises stands apart from the one before.
SettingsCard as a pictogram + text grid, green → ochre bar (#2f7d5b → #e0a23b), range and distance from the code; 269 px area in a phone frame, 438 px of travel. Capture scrolling driven by script.
Day programme of a seaside school trip — dining-hall screen, the schedule advances on its own — Progress Reveal Steps example 3

③ Day programme of a seaside school trip — dining-hall screen, the schedule advances on its own

WhenOn a common-room screen the day's activities scroll by themselves, from 8 am to the evening gathering. The bar at the top shows how far the schedule has got; each line arrives from the bottom.
WhyNobody touches the screen: a script scrolls, the effect follows. The children see at a glance whether the list is at its start or its end, without reading the times.
SettingsBar thickened to 6 px (#39b6c8 → #f2b84b), lines as a time + activity grid, fixed column on the left outside the area; 360 px area, 362 px of travel. The automatic scrolling is the scene's, as the display software would do it.

How it works

The bar. .ss-progress-bar-track is a 4 px rounded track set to position: sticky; top: 8px. Its child .ss-progress-bar-fill carries an indigo → magenta gradient (#6366f1 → #d946ef) and starts at transform: scaleX(0), origin on the left. The fx0588ProgressBarGrow animation takes it to scaleX(1); animation-timeline: scroll() plugs it into the nearest scrolling area, .sdc-scroll-container (280 px tall; the content no longer has an imposed height and measures 376 px, hence 104 px of travel). Readings in Chromium: 13.5% of the track after 14 px scrolled, 54% at 52, 81% at 78, full at 104.

The steps. Each .ss-progress-item starts at opacity: 0; translateY(20px) and replays fx0588FadeUp on animation-timeline: view(), range entry entry 50%: the reveal takes the first half of the card's passage under the bottom edge. For the demo's 70 px cards that is 35 px of scrolling — the fourth, the only one below the edge at the start, goes from 0 to 1 opacity between 14 and 49 px (0.29 at 24 px, 0.74 at 40). The first three have already entered on opening: they show in place.

The two clocks do not talk to each other: the bar reads the area, each card reads itself. Everything hidden at the start is hidden inside an @supports (animation-timeline: …); a browser that does not know these timelines therefore shows the cards flat, and the supplied script (it only runs in that case) recomputes the bar on every scroll event. The bar's keyframes spell out both ends, from and to: with to alone, the WebKit 26.5 test build showed 25% at mid-travel instead of 50.

Accessibility

  • What the bar says, and to whom: it shows how far the scrolling has gone, not which step is “current”, and only to the eye — two empty divs with no role and no value. It is a decorative marker; if progress matters, write it out (“step 3 of 4”).
  • Invisible but present cards: a card at opacity: 0 stays in the reading order, and in the tab order if it holds a link. A screen reader reads all four steps straight away; a keyboard user can reach a link that has not appeared yet, which the browser then scrolls into view.
  • Headings and contrast: the titles are h4s with no level above them — replace them with the level that follows yours. Violet #a78bfa on the card background: 6.8:1; text at 50% white, 11.5 px: 5.3:1. The bottom hint, in white, swings between 5.3:1 and 14:1: decorative, it is hidden from screen readers (aria-hidden); remove it in production.
  • Keyboard and reduced motion: the area carries tabindex="0", role="region" and an aria-label: it takes focus on Tab in Chromium 149, Firefox 151 and WebKit 26.5 (arrows, End), with a 2 px violet outline drawn inside. Under prefers-reduced-motion, the steps no longer slide: they brighten in place as you scroll (measured: fourth card at 0 at rest, at 1 at the bottom of the travel). The bar keeps following the position: it never moves without the reader's gesture. The hint stops blinking and smooth scrolling is turned off.

Browser compatibility

animation-timeline (scroll() and view()) and animation-range: Chrome and Edge 115, Safari 26, Firefox 159 per the MDN tables. Bench-tested: Chromium 149 and WebKit 26.5 (linear bar and animated cards), Firefox 151 (bar through the script, flat cards). No dependency, no request.

Chrome 115+✓ Full (measured, Chromium 149)
Edge 115+✓ Full according to the tables, not verified
Safari 26+✓ Full in the WebKit 26.5 test build; real Safari not verified
Firefox before 159✓ Bar followed by the script, cards visible without animation (measured, Firefox 151)
Firefox 159+✓ Full according to the tables — not verified
Safari before 26✓ Same as Firefox before 159 — not verified

No timeline, script present: the bar follows, the steps sit in place. Neither timeline nor script: empty bar, steps in place — the content stays whole. When the content fits in the area there is no travel: empty bar there too (measured).

The code

HTML structure to paste into your page (the CSS + JS come with your purchase):

index.html — structure
<div class="fx-0588-root">
  <div class="sdc-scroll-container" tabindex="0" role="region" aria-label="…">
    <div class="ss-progress-content">
      <div class="ss-progress-bar-track">
        <div class="ss-progress-bar-fill"></div>
      </div>
      <div class="ss-progress-items">
        <div class="ss-progress-item">
          <h4>…</h4>
          <p>…</p>
        </div>
        … ×4
      </div>
    </div>
  </div>
  <span class="sdc-scroll-hint" aria-hidden="true">…</span>
</div>

One-time payment, no subscription — the code is yours forever

Customize

Options passed to the API or data-* attributes:

Option / propertyDefaultEffect
Bar colours (CSS — .ss-progress-bar-fill { background }) gradient #6366f1 → #d946ef The gradient is painted across the full width and then shrunk by scaleX: the second colour tightens with it and stays visible at the tip of the bar from start to finish.
Thickness and pinning (CSS — .ss-progress-bar-track { height; top }) 4 px, pinned 8 px from the top 6 to 8 px reads from a distance (display screen); top: 0 and no radius make an edge bar. Content passes behind the track: add a sticky cover in the background colour if that bothers you.
Reveal range (CSS — animation-range: entry entry 50%) first half of the entry entry 0% entry 100% spreads the reveal over the card's whole entry; a tall card makes the movement slower, since the range is proportional to its height.
Distance (CSS — translateY(20px) in the @supports block) 20 px 0 keeps the fade only; a negative value makes the card come down to its place instead of rising to it. The value is written in that one place: the keyframes only describe the arrival.
Gap between steps (CSS — .ss-progress-items { gap }) 16 px With four tight cards, three are on screen from the start and only the last one animates. At gap: 160px they arrive one by one all along the travel (tried).
Content length (CSS — padding on .ss-progress-content, card gap) no fixed height: 376 px, 104 px of travel The bar fills over whatever overflows the area: the more steps you have, or the wider they are spaced, the longer its travel. Remove height and overflow-y from the area so the whole page drives: the bar then pins 8 px from the top of the window (tried).

FAQ

Progress Bar stops at the bar: a full-width line, square-ended, pinned at the very top, and content that scrolls without moving in any other way. Here the bar is inset (8 px, rounded) and above all the content takes part: each step has its own view() timeline and settles in as it enters. Pick the other one for an article, this one for a series of steps or lines you want to see arrive. Similar name, different effect: Progress Reveal Text (fx-0539) has neither bar nor cards; it fills the letters of a word with colour as you scroll.
Yes. A card only animates as it crosses the bottom edge of the area; those already on screen at opening are past their entry and show in place. The demo has four 70 px cards in a 280 px area: three fit straight away. With taller, more numerous or more widely spaced cards, each one enters in turn.
Not as it stands: it mirrors the scroll position, to the pixel. For notches, change the animation's curve — animation-timing-function: steps(4, end) on .ss-progress-bar-fill cuts the travel into four plateaus (tried: a quarter of the bar every 26 px over the demo's 104 px). They will still be tied to the distance scrolled, not to a card actually passing: that would take a script.