Scroll Reveal

Motion

A React wrapper that slides its children up into place once they scroll into view, with configurable offset and delay. Renders still for reduced motion.

src/registry/premium/scroll-reveal.tsx/r/scroll-reveal.json

Installation#

bash
npx shadcn@latest add @minidev/scroll-reveal

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/scroll-reveal.json

Usage#

tsx
import { ScrollReveal } from "@/components/ui/scroll-reveal"

export function Example() {
  return <ScrollReveal />
}

API reference#

ScrollReveal props
PropTypeDefault
children*React.ReactNode-
classNamestring-
ynumber18
delaynumber0

* required

Dependencies#

npm

motion

Built from

No other MiniDev files
All Animated React components

Learn more