Stagger Reveal CSS
A two-column grid of tiles where two neighbours on a row never arrive together: each tile fades up 30 px as it passes the bottom edge, the right-hand one a quarter of an entry after the left-hand one — 45 px of scrolling apart for 180 px tiles. The lag is written in animation-range, without a line of JavaScript.
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



How it works
Six .sb-staggercss-item tiles, 180 px tall, in .sb-staggercss-content, a repeat(2, 1fr) grid with a 12 px gap, all inside a 280 px scrolling area. Each tile starts at opacity: 0; translateY(30px) and replays the fx0552FadeUp animation on its own view() timeline: its progress does not depend on the time but on how much of itself has crossed the bottom edge of the area.
The whole stagger fits in one rule. By default the range is entry entry 40%: the reveal takes the first 40 percent of the entry, that is 72 px of scrolling. For even children — the right-hand column when there are two columns — :nth-child(2n) replaces it with entry 25% entry 65%: same length, starting 45 px later. Read on the third row: the left tile starts at 144 px scrolled and ends at 216; at that moment the right one is only at 0.38 opacity, and it ends at 261.
Why not an animation-delay, as in a classic cascade? Because a delay in milliseconds has no meaning on a scroll timeline, and browsers ignore it: with delays of 60 to 300 ms, two tiles on the same row kept exactly the same opacity at every position (measured in Chromium and WebKit). Shifting the range is the only way of writing it that produces a real lag — and it stays tied to the gesture: scroll back up and the right tile fades out first.
Accessibility
- Reading order: the tiles are
divs laid out in HTML order, left then right, row after row. The stagger only changes when the eye sees them; a screen reader reads them all straight away, including those atopacity: 0below the bottom edge. - Semantics: nothing says this is a list. For tiles of the same kind (products, rooms, workshops) use
ul/li— the classes work on any tag, includingbuttons if the tiles can be picked. - Reduced motion: a
prefers-reduced-motionrule drops the 30 px slide; each tile brightens in place, still with the scroll, and the right-hand column keeps its quarter-entry lag (measured at rest, second row: 0.67 on the left, 0.04 on the right). The hint stops blinking and smooth scrolling is turned off. To place everything at once, replaceanimation-namein that block withanimation: none; opacity: 1. - Legibility: bold white 13.6 px text on an almost black tile background, 18:1. During the entry a half-transparent tile drops below 4.5:1 while its opacity is under roughly 0.45 — brief, but do not put there something that must be read in flight. The area carries
tabindex="0",role="region"and anaria-labelto translate: Tab stops on it in Chromium, Firefox and WebKit, and a 2 px violet outline then rings it.
Browser compatibility
CSS only: animation-timeline: view() and animation-range — Chrome and Edge 115, Safari 26, Firefox 159 per MDN — plus a CSS grid. Checked on Chromium 149 and WebKit 26.5, with the same opacities to the hundredth. Firefox 151, which lacks these timelines, shows the whole grid, still.
The hidden state and both ranges sit in @supports (animation-timeline: view()) blocks: without support, no tile is ever hidden. Same result when the grid fits in the area — no travel, no animation, everything in place (measured).
The code
HTML structure to paste into your page (the CSS + JS come with your purchase):
<div class="fx-0552-root">
<div class="sdc-scroll-container" tabindex="0" role="region" aria-label="…">
<div class="sb-staggercss-content">
<div class="sb-staggercss-item">…</div>
… ×6
</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 / property | Default | Effect |
|---|---|---|
Lag of the right-hand column (CSS — :nth-child(2n) { animation-range: entry 25% entry 65% }) |
a quarter of an entry (45 px for a 180 px tile) | entry 40% entry 80% widens the gap, entry 10% entry 50% makes it barely noticeable. The lag is counted as a share of the tile's height: a tile half as tall gives a gap half as long. |
Number of columns (CSS — grid-template-columns: repeat(2, 1fr)) |
2 | With three columns, replace the 2n rule with two rules: :nth-child(3n+2) at entry 20% entry 60% and :nth-child(3n) at entry 40% entry 80% (tried: three tiles of a row at 1 — 0.72 — 0.22 opacity at the same instant). Otherwise the 2n rule delays tiles in no relation to their column. |
Tile height (CSS — .sb-staggercss-item { min-height: 180px }) |
180 px | At least one row must sit below the bottom edge, or nothing animates. With the demo's 180 px, the second row is already half revealed on opening and the third waits underneath. |
Reveal length (CSS — animation-range: entry entry 40%) |
40% of the entry | Keep the same length in both rules (40 points here), or one column will look slower than the other. entry 0% entry 70% with entry 30% entry 100% gives a longer rise. |
Distance (CSS — translateY(30px)) |
30 px | 60 px stresses the staircase look between the two columns; 0 leaves only a staggered fade. |
Stage length (CSS — content of .sb-staggercss-content) |
no fixed height: 644 px for three rows, 364 px of travel | The height follows your tiles: each added row lengthens the travel by as much, with no gap below the last one. Remove height and overflow-y from the area so the window drives: the tiles then enter from the bottom of the screen (tried). |
FAQ
:nth-child(2n) rule gives one column a shifted range: that lag between neighbours is the effect. The travel is also shorter (30 px against 60). For a single column, take Fade Up; as soon as there is a grid, this one.:nth-child(2n) counts every child of the stage, not just the tiles. A heading placed as first child becomes no. 1, the first tile no. 2 — even, hence delayed — and the lag moves to the left-hand column. Take the heading out of the stage, or replace the selector with :nth-child(2n of .sb-staggercss-item) (Chrome 111, Safari 9, Firefox 113; tried in Chromium).:nth-child(4n+3), :nth-child(4n).