Reveal

Staggered entrance for direct or nested content with load or scroll triggers

View documentation

Direct children

No per-item markup: CSS numbers the first children and the controller fills in the rest.

Deploy
A direct child, with no per-item markup.
Rollback
A direct child, with no per-item markup.
Metrics
A direct child, with no per-item markup.
Alerts
A direct child, with no per-item markup.
Audit log
A direct child, with no per-item markup.
Billing
A direct child, with no per-item markup.

Explicit nested items

Use hw:reveal.item when the animated units are not direct children. The sequential index comes from the container — no counter in the Blade.

New environment

Motions

rise, flat and fade. Reach for fade when the item contains a positioned overlay: it is the only one that omits filter and transform, which would otherwise create a containing block.

rise — Fade, blur and travel

Item 1
Item 2
Item 3

flat — No filter

Item 1
Item 2
Item 3

fade — Opacity only

Item 1
Item 2
Item 3

Timing and your own keyframe

The props become custom properties. max-steps caps the growing delay on long lists, and --reveal-animation swaps the keyframe while keeping the timing formula.

stagger 90ms · duration 700ms · delay 200ms

1 2 3 4 5 6 7 8

max-steps 3 — the delay stops growing at the fourth item

1 2 3 4 5 6 7 8

--reveal-animation: an application keyframe

1 2 3 4 5

Scroll trigger

Each item is observed on its own. The 140vh block exercises the threshold ceiling and the last block exercises the dead zone left by the negative root-margin.

Scroll the page: each item is observed on its own and the stagger restarts per batch. The tall block exceeds the viewport and exercises the per-item threshold ceiling.

Block 1

Enters as it crosses the viewport.

Block 2

Enters as it crosses the viewport.

Block 3

Enters as it crosses the viewport.

Block 4

Enters as it crosses the viewport.

Block 5

Enters as it crosses the viewport.

Block 6

Enters as it crosses the viewport.

Tall block (140vh)

Taller than the viewport — it would never reach threshold 0.2 without the per-item ceiling.

Last block

It sits inside the dead zone the negative root-margin leaves at the end of the document.

once=false — replays when it leaves and comes back

Repeatable 1
Repeatable 2
Repeatable 3
Repeatable 4

Inside overlays

Modal, Dropdown and Sheet: the cascade must not complete while the content is hidden, and a dropdown inside an item has to anchor without a containing block getting in the way.

Inside a Turbo Frame

The cascade runs when the frame renders, not on page load.

The frame loads content with its own Reveal. The cascade runs when the frame renders, not on page load.

Empty frame — load a batch.

Turbo Stream over a visible item

Swapping an already visible item is a replacement, not an entrance: the incoming content gets data-reveal-skip.

An already visible item is swapped by Turbo Stream. It must change in place rather than disappear and re-enter — the controller stamps data-reveal-skip on the incoming content.

Item 1
Item 2 — original
Item 3

Integration: animated-number, progress and reveal:shown

Counters restart with the batch, progress indicators fill from zero, and the application coordinates through the event instead of coupling to the controller.

animated-number restarts when the batch appears and the hw:progress indicator fills from zero, in step with the item that owns it. The reveal:shown counter comes from an application controller listening to the event.

Requests

0

Subscribers

0

Uptime

0

reveal:shown fired 0 time(s).