Scroll
Scroll Reveal
A scroll-based reveal animation component that elegantly reveals content with a slide and fade effect when the element enters the viewport.
Usage
Installation
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | The content to reveal on scroll |
Features
- Fade and slide animation: Content fades in while sliding up from below
- Overlay reveal effect: A colored overlay slides across to reveal the content
- Viewport detection: Uses
useInViewhook to trigger animation when element is 50% visible - One-time animation: Animation only plays once when first entering viewport
- Customizable timing: Built with Motion for smooth, professional animations