ScrollPremium

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.

CSSStaggerNative

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

Rowing boats at a lakeside hire point — availability of each boat on mobile — Stagger Reveal CSS example 1

① Rowing boats at a lakeside hire point — availability of each boat on mobile

WhenOn a phone, ten tiles in two columns: the boat's name, its seats, and a pill reading “Free”, “Back at 2:40 pm” or “Booked”. You thumb down the list to find a free one.
WhyTwo tiles side by side are read one after the other: the slight lag of the right-hand column goes with that left-to-right sweep, instead of dropping the row in as one block.
SettingsTiles brought down to 112 px tall (min-height), content left-aligned in a column, white background; the code's ranges unchanged, which gives 28 px of lag at that height. 248 px area in a phone frame. Capture scrolling driven by script.
Choosing your team's crest — signing up for a table-football tournament — Stagger Reveal CSS example 2

② Choosing your team's crest — signing up for a table-football tournament

WhenA small window opens over the registration form: ten crests in two columns to scroll with the wheel, you click yours, its name is written at the foot of the window.
WhyIn a window 216 px tall only two rows show: the staggered arrival signals that the list goes on and leads the eye from one crest to the next. The tiles are real buttons, click and keyboard both work.
SettingsThe effect's classes are set on buttons; 108 px tiles, selection border added by the scene (aria-pressed). 216 px area. In the capture, the scrolling and the final click are sent by a script; the capture pointer also clicks along the way.
Today's workshops at a children's play centre — reception screen, the grid scrolls by itself — Stagger Reveal CSS example 3

③ Today's workshops at a children's play centre — reception screen, the grid scrolls by itself

WhenOn the entrance screen, eight large coloured tiles — time, workshop, room, age, places left — scroll on their own so parents and children can spot what to pick.
WhyTwo workshops at the same time share a row: bringing them in one after the other leaves time to read the first before the second takes the eye.
Settings136 px tiles without border, five pastel backgrounds added by class, left-aligned text; 312 px area under a banner. The automatic scrolling is the scene's, as the display software would do it.

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 at opacity: 0 below 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, including buttons if the tiles can be picked.
  • Reduced motion: a prefers-reduced-motion rule 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, replace animation-name in that block with animation: 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 an aria-label to 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.

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✓ Grid visible, no animation (measured, Firefox 151)
Firefox 159+✓ Full according to the tables — not verified
Safari before 26✓ Grid visible, no animation — not verified

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):

index.html — structure
<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 / propertyDefaultEffect
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

Fade Up stacks blocks in one column and gives them all the same range: each enters when it arrives, with no relation to its neighbours. Here the blocks sit side by side, and the :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).
They already are, with nothing written: each tile has its timeline, and a row placed 192 px lower starts 192 px of scrolling later. The code only adds what the layout does not give, the lag inside a row. To make a whole row trail further, give it a later range with a selector such as :nth-child(4n+3), :nth-child(4n).