docs / core / reveal group
Reveal Group
the stagger group for Reveal: one shared viewport trigger cascades its direct children in, one after the next. the cascade is the effect, so the layout goes on the group and one variant covers every child.
intensity · guidesrsc · client
provenance
authored in usvalayer
core / motionintensity
guides · leads the eye through a sequence, then clearscomposition
a grid or row of siblings that enter together: cards, stats, logosone variant for the whole group; children inherit itnever a Reveal inside it, the group already animates each childnot across sections, one trigger per groupa11y
renders static underprefers-reduced-motion, nothing ever arms · children ship visible before hydrationjest-axedependencies
motionlive demo · try it out
Tokens
layer
Themes
layer
Primitives
layer
Patterns
layer
Sula
layer
Atmospheres
layer
customize
variantthe reveal every child runs
staggerseconds between children
usage
import { RevealGroup } from "@usva-ui/react/motion/reveal";
import { Card } from "@usva-ui/react/primitives/card";
<RevealGroup
variant="tick"
stagger={0.08}
className="grid grid-cols-3 gap-3"
>
<Card>Tokens</Card>
<Card>Themes</Card>
<Card>Primitives</Card>
</RevealGroup>props
| prop | type | default | notes |
|---|---|---|---|
| variant | "veil" | "cast" | "surface" | "focus" | "tick" | "lean" | "tick" | the reveal every child runs. assign by content role, like Reveal. |
| stagger | number | 0.06 | seconds between children on the shared trigger. the cascade is the effect, so the layout classes go on the group. |
| as | RevealTag | "div" | the rendered element. ul, section, and friends keep their semantics. |
| intensity | number | — | overrides the ambient RevealConfigProvider scalar for the group. |
| force | boolean | false | cascade even when already in view at mount. |
get it
bun add @usva-ui/reactusage
import { RevealGroup } from "@usva-ui/react/motion/reveal";
<RevealGroup variant="tick" className="grid grid-cols-3 gap-3">
<StatCard />
<StatCard />
<StatCard />
</RevealGroup>