CSS View Timeline Stagger List — Scroll Timeline, No JS
CSS View Timeline Stagger List Items · Scroll · Plain HTML, CSS & JS · Live preview
About this UI Snippet
CSS View Timeline Stagger List Items — A Process Timeline Built Only From Scroll-Driven CSS

This snippet is a "From brief to launch" process timeline with six steps on a vertical rail. As you scroll, each step's card slides in from its side of the rail and sharpens out of a blur. Inside the card the icon and step number, the title, the text and the tags arrive one after another. The card glows while it crosses the middle of the screen, the step's dot lights up and gets a tick once you have passed it, and the rail fills behind you with its tip always at the middle of the screen. Scroll back up and every tick comes off again. There is no JavaScript at all: every effect is a CSS scroll-driven animation.
One named view timeline per step
Each .vsl-step declares view-timeline: --step block. A named view timeline is visible to the element's descendants, so the card, every child inside the card, the dot and the dot's ::after tick can all use animation-timeline: --step and read the same step's progress through the viewport. Each one then picks its own slice of that progress with animation-range.
A real stagger, from ranges on one timeline
The card's four children use one keyframe (vsl-child, a fade and a small rise) with ranges that start ten points apart: entry 15% entry 65%, entry 25% entry 75%, entry 35% entry 85% and entry 45% entry 100%. Because they share the step's timeline, they always arrive in the same order and spacing no matter how fast you scroll, which is exactly what a stagger is. No delays, no --i index variables and no script.
Entry, focus and done, from named ranges
The card's slide-in runs over entry 0% entry 90%, the part of the scroll where the step is coming into view. Its glow runs over cover 25% cover 75% with a keyframe that peaks at 50%, and cover 50% is the moment the step's centre lines up with the viewport's centre, so the brightest point is always the middle of the screen. The dot changes over cover 44% cover 52% and the tick over cover 48% cover 54%. With animation-fill-mode: both, a view-timeline animation keeps its end state after its range, so a passed step stays ticked, and keeps its start state before, so a step you have not reached yet stays empty.
A rail that tracks the middle of the screen
The whole list sits in .vsl-track, which declares its own --track timeline. The rail fill scales from 0 to 1 over cover 50vh cover calc(100% - 50vh). The cover range starts when the track's top reaches the bottom of the viewport, so 50vh later its top is at the middle; it ends when the track's bottom leaves the top, so 50vh earlier its bottom is at the middle. Between those points the fill's tip stays on the middle of the screen, which lines it up with the dots lighting up.
Alternating sides from one variable
On desktop each step is a three-column grid (card, rail, empty), and even steps move their card to the third column. The slide-in keyframe reads a --from-x custom property, set to -48px on the left and 48px on the right, so each card comes in from its own side with one keyframe. On phones the rail moves to the left and every card sits to its right.
Progressive enhancement
The base CSS is the finished timeline: cards visible, dots lit and ticked, rail full. The view timelines and animations live inside @media (prefers-reduced-motion: no-preference) and @supports (animation-timeline: view()), so browsers without scroll-driven animations and anyone who prefers reduced motion get a complete, readable page instead of hidden cards. See CSS View Timeline Card Flip In and CSS Scroll Timeline Gauge Needle for more native scroll-driven techniques.
What's included
Features
Step by step
How to Use
- 1Paste the HTML and CSSNo JavaScript is needed. You get an intro, a six-step timeline on a vertical rail, and an outro with a button.
- 2Scroll through the stepsEach card slides in from its side, its contents arrive one after another, it glows at the middle of the screen and its dot gets a tick as you pass.
- 3Scroll back upThe ticks come off and the rail empties, because every effect follows scroll position.
- 4Edit the stepsChange the icon SVG, step number, title, text and tags in each .vsl-step. Add or remove steps freely; nothing depends on the count.
- 5Tune the timingMove the animation-range values: the entry ranges control the slide-in and the stagger, the cover ranges control the glow and when the tick appears.
- 6Restyle itChange the cyan and violet in the rail gradient, the dot, the focus glow and the tags to match your brand.
Real-world uses
Common Use Cases
Got questions?
Frequently Asked Questions
Every child inside a card uses the same keyframe and the same timeline, the step's named view timeline, but with an animation-range that starts ten points later than the previous one. Since they all read the same scroll progress, they always arrive in the same order and spacing, however fast or slow you scroll.
The step element declares view-timeline: --step block. A named view timeline is visible to the element's descendants, so anything inside the step, including pseudo-elements like the dot's tick, can use animation-timeline: --step and pick its own range.
Animations driven by a view timeline respect animation-fill-mode. With both, the dot keeps its end state (lit, ticked) after its range has passed and its start state (empty) before the range starts. Scrolling back moves the timeline backwards, so the tick comes off again.
The rail uses the track's view timeline with animation-range: cover 50vh cover calc(100% - 50vh). That range starts when the track's top reaches the middle of the viewport and ends when its bottom does, so the fill grows exactly as fast as the middle of the screen moves down the list.
All the timelines and animations sit inside @supports (animation-timeline: view()) and @media (prefers-reduced-motion: no-preference). Without support, or with reduced motion, the base CSS shows the finished timeline: every card visible, dots lit and ticked and the rail full.
Copy & paste
Source Code
<main class="vsl-page">
<header class="vsl-intro">
<span class="vsl-kicker">How we work</span>
<h1>From brief to launch, in six steps</h1>
<p>Scroll down. Each step slides in, its contents arrive one after another, it lights up as it passes the middle of the screen and gets ticked off once you are past it. All of it is CSS <code>view()</code> timelines, with no JavaScript.</p>
</header>
<div class="vsl-track">
<span class="vsl-rail" aria-hidden="true"><i></i></span>
<ol class="vsl-list">
<li class="vsl-step">
<span class="vsl-dot" aria-hidden="true"></span>
<article class="vsl-card">
<div class="vsl-head"><span class="vsl-icon"><svg viewBox="0 0 24 24"><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5M9 13h6M9 17h4"/></svg></span><span class="vsl-num">Step 01</span></div>
<h3>Draft the brief</h3>
<p>Agree on scope, audience and what success looks like before any design work starts.</p>
<div class="vsl-tags"><span>Week 1</span><span>Workshop</span></div>
</article>
</li>
<li class="vsl-step">
<span class="vsl-dot" aria-hidden="true"></span>
<article class="vsl-card">
<div class="vsl-head"><span class="vsl-icon"><svg viewBox="0 0 24 24"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z"/></svg></span><span class="vsl-num">Step 02</span></div>
<h3>Sketch the flows</h3>
<p>Rough wireframes test the structure while changes are still cheap.</p>
<div class="vsl-tags"><span>Week 2</span><span>Wireframes</span></div>
</article>
</li>
<li class="vsl-step">
<span class="vsl-dot" aria-hidden="true"></span>
<article class="vsl-card">
<div class="vsl-head"><span class="vsl-icon"><svg viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7" rx="1.5"/><rect x="14" y="3" width="7" height="7" rx="1.5"/><rect x="3" y="14" width="7" height="7" rx="1.5"/><rect x="14" y="14" width="7" height="7" rx="1.5"/></svg></span><span class="vsl-num">Step 03</span></div>
<h3>Design the system</h3>
<p>Type, colour and spacing as a small reusable kit, not a pile of one-off screens.</p>
<div class="vsl-tags"><span>Weeks 3–4</span><span>Design system</span></div>
</article>
</li>
<li class="vsl-step">
<span class="vsl-dot" aria-hidden="true"></span>
<article class="vsl-card">
<div class="vsl-head"><span class="vsl-icon"><svg viewBox="0 0 24 24"><path d="M4 4l7 17 2.5-7.5L21 11z"/></svg></span><span class="vsl-num">Step 04</span></div>
<h3>Prototype and test</h3>
<p>Five real users try a clickable prototype before a line of production code is written.</p>
<div class="vsl-tags"><span>Week 5</span><span>User testing</span></div>
</article>
</li>
<li class="vsl-step">
<span class="vsl-dot" aria-hidden="true"></span>
<article class="vsl-card">
<div class="vsl-head"><span class="vsl-icon"><svg viewBox="0 0 24 24"><path d="M5 19c1-4 3-7 7-11 3-3 6-4 8-4 0 2-1 5-4 8-4 4-7 6-11 7z"/><path d="M9 15l-3 3M14 6l4 4"/></svg></span><span class="vsl-num">Step 05</span></div>
<h3>Build and ship</h3>
<p>Small releases behind a feature flag, each one checked against the brief.</p>
<div class="vsl-tags"><span>Weeks 6–9</span><span>Releases</span></div>
</article>
</li>
<li class="vsl-step">
<span class="vsl-dot" aria-hidden="true"></span>
<article class="vsl-card">
<div class="vsl-head"><span class="vsl-icon"><svg viewBox="0 0 24 24"><path d="M4 20V10M10 20V4M16 20v-7M22 20H2"/></svg></span><span class="vsl-num">Step 06</span></div>
<h3>Measure and iterate</h3>
<p>Close the loop with real numbers. The brief was a hypothesis, not a promise.</p>
<div class="vsl-tags"><span>Ongoing</span><span>Analytics</span></div>
</article>
</li>
</ol>
</div>
<footer class="vsl-outro">
<h2>That's the whole process.</h2>
<p>Scroll back up and the ticks come off one by one, because every effect is tied to scroll position.</p>
<a class="vsl-btn" href="#">Start a project</a>
</footer>
</main>*{box-sizing:border-box;margin:0;padding:0}
html,body{background:#0a0a11}
body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#f1eff9}
code{background:rgba(34,211,238,.14);color:#7dd3ec;padding:2px 6px;border-radius:5px;font-size:.9em;font-family:ui-monospace,Consolas,monospace}
.vsl-intro,.vsl-outro{min-height:62vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:14px;padding:48px 24px;max-width:620px;margin:0 auto}
.vsl-kicker{font-size:12px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:#22d3ee}
.vsl-intro h1{font-size:clamp(30px,5.4vw,52px);line-height:1.05;letter-spacing:-.03em}
.vsl-outro h2{font-size:clamp(26px,4vw,38px);letter-spacing:-.02em}
.vsl-intro p,.vsl-outro p{color:#a29fbf;font-size:16px;line-height:1.75}
.vsl-btn{margin-top:8px;padding:12px 22px;border-radius:999px;font-weight:700;font-size:14px;color:#06222b;text-decoration:none;background:linear-gradient(90deg,#22d3ee,#a78bfa)}
.vsl-btn:focus-visible{outline:2px solid #22d3ee;outline-offset:3px}
/* ---------- base = finished state (no scroll-driven support, or reduced motion) ---------- */
.vsl-track{position:relative;max-width:1000px;margin:0 auto;padding:4vh 24px 10vh}
.vsl-rail{position:absolute;top:0;bottom:0;left:50%;width:2px;margin-left:-1px;background:rgba(255,255,255,.08);border-radius:2px}
.vsl-rail i{position:absolute;inset:0;border-radius:2px;background:linear-gradient(#22d3ee,#a78bfa);transform-origin:top}
.vsl-list{list-style:none;display:grid;gap:6vh}
/* desktop: cards alternate left and right of the rail */
.vsl-step{display:grid;grid-template-columns:1fr 64px 1fr;align-items:center}
.vsl-dot{grid-column:2;grid-row:1;justify-self:center;position:relative;z-index:1;width:20px;height:20px;border-radius:50%;
background:#22d3ee;border:2px solid #22d3ee;box-shadow:0 0 0 6px rgba(34,211,238,.14)}
.vsl-dot::after{content:"";position:absolute;left:50%;top:44%;width:5px;height:9px;margin:-5px 0 0 -2.5px;border:solid #06222b;border-width:0 2px 2px 0;transform:rotate(45deg)}
.vsl-card{--from-x:-48px;grid-column:1;grid-row:1;padding:22px 24px;border-radius:18px;border:1px solid #221f33;
background:linear-gradient(155deg,#141222,#0c0b15)}
.vsl-step:nth-child(even) .vsl-card{--from-x:48px;grid-column:3}
.vsl-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.vsl-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:rgba(34,211,238,.12);color:#22d3ee}
.vsl-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vsl-num{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#7c78a0}
.vsl-card h3{font-size:20px;letter-spacing:-.01em}
.vsl-card p{color:#a29fbf;font-size:14.5px;line-height:1.65;margin-top:6px}
.vsl-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.vsl-tags span{font-size:11.5px;font-weight:600;color:#c9c5e6;padding:4px 10px;border-radius:999px;background:rgba(167,139,250,.12);border:1px solid rgba(167,139,250,.22)}
@media (max-width:760px){
.vsl-rail{left:46px} /* 24px track padding + half of the 44px dot column */
.vsl-step{grid-template-columns:44px 1fr;gap:6px}
.vsl-dot{grid-column:1}
.vsl-card,.vsl-step:nth-child(even) .vsl-card{--from-x:28px;grid-column:2}
}
/* ---------- enhanced: every effect is a view() timeline ---------- */
@media (prefers-reduced-motion:no-preference){
@supports (animation-timeline:view()){
/* Each step names its own view timeline; the card, its children and the dot all read it. */
.vsl-step{view-timeline:--step block}
.vsl-track{view-timeline:--track block}
/* The card slides in from its own side while sharpening, and glows while it crosses the middle. */
.vsl-card{
animation:vsl-in linear both,vsl-focus linear both;
animation-timeline:--step,--step;
animation-range:entry 0% entry 90%,cover 25% cover 75%;
}
/* The stagger: the card's children arrive one after another on the same timeline. */
.vsl-card > *{animation:vsl-child linear both;animation-timeline:--step}
.vsl-card > :nth-child(1){animation-range:entry 15% entry 65%}
.vsl-card > :nth-child(2){animation-range:entry 25% entry 75%}
.vsl-card > :nth-child(3){animation-range:entry 35% entry 85%}
.vsl-card > :nth-child(4){animation-range:entry 45% entry 100%}
/* The dot lights up as its step reaches the middle (cover 50%) and keeps the tick after. */
.vsl-dot{animation:vsl-dot linear both;animation-timeline:--step;animation-range:cover 44% cover 52%}
.vsl-dot::after{animation:vsl-tick linear both;animation-timeline:--step;animation-range:cover 48% cover 54%}
/* The rail fills so its tip sits at the middle of the screen:
0 when the track's top reaches the middle, 1 when its bottom does. */
.vsl-rail i{animation:vsl-fill linear both;animation-timeline:--track;animation-range:cover 50vh cover calc(100% - 50vh)}
}
}
@keyframes vsl-in{
from{opacity:0;transform:translate(var(--from-x),40px) scale(.96);filter:blur(6px)}
to{opacity:1;transform:none;filter:blur(0)}
}
@keyframes vsl-focus{
0%,100%{border-color:#221f33;box-shadow:0 0 0 rgba(34,211,238,0)}
50%{border-color:rgba(34,211,238,.6);box-shadow:0 24px 60px -24px rgba(34,211,238,.45)}
}
@keyframes vsl-child{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes vsl-dot{
from{background:#0a0a11;border-color:#3b3752;box-shadow:0 0 0 0 rgba(34,211,238,0)}
to{background:#22d3ee;border-color:#22d3ee;box-shadow:0 0 0 6px rgba(34,211,238,.14),0 0 24px rgba(34,211,238,.55)}
}
@keyframes vsl-tick{from{opacity:0;transform:rotate(45deg) scale(.4)}to{opacity:1;transform:rotate(45deg) scale(1)}}
@keyframes vsl-fill{from{transform:scaleY(0)}to{transform:scaleY(1)}}// No JavaScript. Every effect on this page is a CSS scroll-driven animation:
// each .vsl-step has its own view-timeline (--step) that drives the card's
// slide-in and glow, the staggered arrival of its contents, and the dot and
// tick; the track's view-timeline (--track) fills the rail.Extend with AI
Take This Snippet Further With AI
You do not need an animation library to understand this timeline. Paste this snippet's HTML and CSS into an AI assistant like Claude and ask it how the named view timeline lets the card, its children and the dot share one progress value, how the cover ranges place the glow at the middle of the screen, or why the rail range uses 50vh offsets. It can also help you extend it: add a sticky "Step 3 of 6" counter that changes with the scroll, give the active card a coloured left border, add images to some steps, or switch it to a horizontal timeline.
Prompt to recreate it
Copy this into your AI assistant of choice to build the effect from scratch, or as a jumping-off point for your own variant:
Build a scroll-driven process timeline in plain HTML and CSS only (no JavaScript), using CSS scroll-driven animations.
Requirements:
- An intro, a list of six steps on a vertical rail, and an outro with a button. Each step has a dot on the rail and a card with an icon and step number, a title, a short text and tag chips.
- Desktop: each step is a three-column grid (card, rail, empty) and even steps put the card on the right. Phones: the rail on the left and every card to its right.
- Base CSS is the finished state (cards visible, dots lit with a tick, rail full). Put all timelines and animations inside @media (prefers-reduced-motion: no-preference) and @supports (animation-timeline: view()).
- Each step declares view-timeline: --step block. The card animates in over entry 0% entry 90% (slide from its own side using a --from-x variable, rise, scale up, unblur) and has a focus glow over cover 25% cover 75% that peaks at 50%.
- The card's four children use one fade-and-rise keyframe on the same --step timeline with ranges entry 15-65%, 25-75%, 35-85% and 45-100%, which creates the stagger.
- The dot lights up over cover 44% cover 52% and its ::after tick appears over cover 48% cover 54%, using fill-mode both so passed steps stay ticked and untick when scrolling back.
- The list wrapper declares view-timeline: --track block, and the rail fill scales from 0 to 1 over cover 50vh cover calc(100% - 50vh), so its tip stays at the middle of the screen.Want to tighten it up first? Run this prompt through the AI Prompt Studio to score it across 8 quality dimensions, catch anti-patterns, and tune the wording for Claude, ChatGPT, or Gemini before you paste it in.