Reveal
Scroll reveal: content fades and rises on a spring the first time it enters the viewport.
First · rises on scroll
Second · rises on scroll
Third · rises on scroll
import { Reveal } from "@/components/ui/reveal";export function Feature() { return ( <Reveal delay={0.1}> <article>Rises into view on scroll.</article> </Reveal> );}<Reveal>
Fades and rises in on a spring the first time it scrolls into view. Stays visible after.
delaydefault0numberSeconds to wait after entering view.
ydefault24numberStart offset in px. Content rises into place.
| Prop | Type | Default |
|---|---|---|
delaySeconds to wait after entering view. | number | 0 |
yStart offset in px. Content rises into place. | number | 24 |
* required. Every component also takes className.