Skip to content

Reveal

MotionMIT
View in Storybook

Scroll-triggered reveal animation primitive for content-rich pages.

bun add @otfdashkit/ui

Preview

Reveal
Loading Storybook preview…

Code

import { 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.

PropTypeDefaultDescription
childrenrequiredReactNode
classNamestring
delaynumber0
oncebooleantrue
presetMotionPreset'fadeIn'