Animate On Scroll
Motion-powered scroll reveal wrapper with fade, slide, and scale variants. Includes stagger support for lists.
Fade Up (default)
This element fades in from below
Fade In
This element fades in with no movement
Fade Left
Fade Right
Scale In
This element scales up from 95%
Stagger One
Stagger Two
Stagger Three
Features
- 5 animation variants — fadeUp, fadeIn, fadeLeft, fadeRight, scaleIn
- Stagger support — StaggerOnScroll + StaggerItem for list animations
- Reduced motion — Respects prefers-reduced-motion
- Configurable delay — Sequence multiple elements
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "fadeUp" | "fadeIn" | "fadeLeft" | "fadeRight" | "scaleIn" | "fadeUp" | Animation direction/style |
| delay | number | 0 | Delay before animation starts (seconds) |
| once | boolean | true | Only animate once when scrolled into view |
| className | string | - | Additional className |