Components
Reveal
Scroll-triggered entrance animation with five built-in presets.
Overview
<Reveal> triggers an entrance animation when scroll progress reaches a threshold. Place inside a <Scene> or provide a progress prop directly.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
at | number | 0 | Progress value (0-1) when animation triggers |
animation | RevealAnimation | "fade" | Animation preset (see below) |
duration | number | 600 | Animation duration in milliseconds |
delay | number | 0 | Delay before animation starts in milliseconds |
progress | number | -- | Direct progress override (0-1). If omitted, reads from parent <Scene> context |
children | ReactNode | -- | Content to reveal |
className | string | -- | CSS class for the wrapper div |
Animation presets
| Preset | Effect |
|---|---|
"fade" | Opacity 0 to 1 |
"fade-up" | Fade in + slide up 40px |
"fade-down" | Fade in + slide down 40px |
"scale" | Fade in + scale from 0.9 to 1 |
"blur" | Fade in + unblur from 12px |
Accessibility
When prefers-reduced-motion is enabled, content renders immediately in its visible state with no animation.