---
title: "Scroll Reveal"
description: "Free React scroll reveal: children slide in with a spring and blur as they enter the viewport, once or every time. Reduced motion keeps a fade. shadcn install."
category: "Components"
parent: "https://beui.dev/components/motion/scroll-animation"
publishedAt: "2026-06-24"
updatedAt: "2026-11-10"
documentation: "https://beui.dev/components/motion/scroll-animation/scroll-reveal"
markdown: "https://beui.dev/components/motion/scroll-animation/scroll-reveal.md"
license: "MIT"
---

# Scroll Reveal

> Free React scroll reveal: children slide in with a spring and blur as they enter the viewport, once or every time. Reduced motion keeps a fade. shadcn install.

## Install

```bash
npx shadcn@latest add @beui/scroll-reveal
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

### Scroll Reveal usage

Reveals its children with a spring slide and blur as they enter the viewport, once or every time. Reduced-motion keeps a fade.

```tsx
"use client";

import { useRef } from "react";

import { ScrollReveal } from "@/components/motion/scroll-reveal";

// On a page <ScrollReveal> tracks the viewport. Here root points at the box so
// each card reveals as it scrolls into the contained view.
const CARDS = ["Spring slide", "Blur in", "Staggered by delay", "Reveal once"];

export function ScrollRevealPreview() {
  const containerRef = useRef<HTMLDivElement>(null);

  return (
    <div
      ref={containerRef}
      className="h-80 w-full max-w-lg overflow-y-auto scrollbar-hide rounded-2xl border border-border bg-card"
    >
      <div className="flex flex-col gap-16 p-6">
        <div className="text-center text-sm text-muted-foreground">
          Scroll ↓
        </div>
        {CARDS.map((label, i) => (
          <ScrollReveal
            key={label}
            root={containerRef}
            once={false}
            delay={i * 0.05}
            className="rounded-2xl border border-border bg-muted/50 px-4 py-16 text-center text-base font-medium text-foreground"
          >
            {label}
          </ScrollReveal>
        ))}
        <div className="text-center text-sm text-muted-foreground">End</div>
      </div>
    </div>
  );
}
```

## API Reference

### ScrollReveal

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `y` | `number` | `16` | No | Slide distance in px before reveal. |
| `blur` | `number` | `8` | No | Enter blur in px (kept ≤ 10 per motion conventions). |
| `duration` | `number` | `0.6` | No | Reveal duration in seconds. |
| `delay` | `number` | `0` | No | Wait before the reveal starts, in seconds. Default: 0 |
| `once` | `boolean` | `true` | No | Reveal only once (default) or every time it enters view. |
| `amount` | `number \| "all" \| "some"` | `0.3` | No | Portion of the element that must be visible to trigger. |
| `root` | `RefObject<Element \| null>` | — | No | Scroll root for contained scroll areas. Defaults to the viewport. |
| `className` | `string` | — | No | Classes merged onto the wrapper element. |

## More in Scroll Animation

- [Smooth Scroll](https://beui.dev/components/motion/scroll-animation/smooth-scroll.md)
- [Scroll Progress](https://beui.dev/components/motion/scroll-animation/scroll-progress.md)
- [Parallax Scroll](https://beui.dev/components/motion/scroll-animation/parallax.md)
- [Scroll To Button](https://beui.dev/components/motion/scroll-animation/scroll-to.md)

## Source

- Registry detail: https://beui.dev/r/scroll-reveal
- Raw source: https://beui.dev/r/scroll-reveal/raw
- GitHub: https://github.com/starc007/ui-components
