Reveal
MotionMITScroll-triggered reveal animation primitive for content-rich pages.
bun add @otfdashkit/ui
Preview
RevealMotion
Loading Storybook preview…
Code
@otfdashkit/uiimport { Reveal } from '@otfdashkit/ui'
export function Example() {
return (
<Reveal>
<div className="rounded-lg border border-border bg-card p-6">
<p className="text-foreground">Revealed on scroll into view</p>
</div>
</Reveal>
)
}
Free with the SDK. This pattern ships in @otfdashkit/ui under the MIT license.
Props
Props declared in the Reveal source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| childrenrequired | ReactNode | ||
| className | string | ||
| delay | number | 0 | |
| once | boolean | true | |
| preset | MotionPreset | 'fadeIn' |