Animate On Scroll
Reveal content as it enters the viewport.
Preview
Import
import { AnimateOnScroll } from "@sigil-ui/components";Usage
<AnimateOnScroll>
<Badge>I animate when scrolled into view</Badge>
</AnimateOnScroll>Props
| Prop | Type | Default | Description |
|---|---|---|---|
preset | UseSigilAnimateConfig["preset"] | fadeUp | Animation preset. |
delay | number | — | Delay in seconds. |
duration | number | 0.6 | Duration in seconds. |