---
title: "Text Reveal"
description: "Free React text reveal: words or characters slide up with a spring and a light blur, in sequence. Reduced-motion safe. Framer Motion, Tailwind, shadcn install."
category: "Components"
parent: "https://beui.dev/components/motion/text-animation"
publishedAt: "2026-05-17"
updatedAt: "2026-11-24"
documentation: "https://beui.dev/components/motion/text-animation/reveal"
markdown: "https://beui.dev/components/motion/text-animation/reveal.md"
license: "MIT"
---

# Text Reveal

> Free React text reveal: words or characters slide up with a spring and a light blur, in sequence. Reduced-motion safe. Framer Motion, Tailwind, shadcn install.

## Install

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

## Dependencies

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

## Usage

### Text Reveal usage

Word or character reveal with spring slide-up and blur.

```tsx
"use client";

import { useState } from "react";
import { TextReveal } from "@/components/motion/text-reveal";

export function TextRevealPreview() {
  const [key, setKey] = useState(0);
  return (
    <div className="flex w-full flex-col items-center gap-8 text-center">
      <div key={key} className="flex flex-col gap-2">
        <TextReveal
          as="h2"
          text={["Motion that feels", "considered."]}
          className="text-balance text-4xl font-semibold leading-[0.95] tracking-[-0.04em] text-foreground sm:text-5xl"
        />
        <TextReveal
          text="Word by word, with a soft blur."
          delay={0.9}
          stagger={0.05}
          blur={6}
          yOffset="20%"
          className="text-sm text-muted-foreground"
        />
      </div>

      <button
        type="button"
        onClick={() => setKey((k) => k + 1)}
        className="inline-flex h-9 items-center rounded-full border border-border bg-card px-4 text-xs font-medium text-foreground press hover:border-(--color-border-strong)"
      >
        Replay
      </button>
    </div>
  );
}
```

## API Reference

### TextReveal

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | `string \| string[]` | — | Yes | Text to reveal. Pass an array to put each string on its own line. |
| `as` | `ElementType` | `span` | No | Element to render as the root. Default: "span" |
| `className` | `string` | — | No | Classes merged onto the root element. |
| `split` | `"word" \| "char"` | `word` | No | Animate word by word or character by character. Default: "word" |
| `stagger` | `number` | `0.09` | No | Delay between each word or character, in seconds. Default: 0.09 |
| `delay` | `number` | `0` | No | Delay before the first word or character, in seconds. Default: 0 |
| `blur` | `number` | `12` | No | Starting blur of each unit, in pixels. Default: 12 |
| `yOffset` | `string \| number` | `40%` | No | How far below each unit starts, as a length or pixels. Default: "40%" |
| `spring` | `{ stiffness?: number; damping?: number; mass?: number \| undefined; } \| undefined` | — | No | Overrides the rise spring. Default: { stiffness: 140, damping: 26, mass: 1.2 } |
| `once` | `boolean` | `true` | No | With `whileInView`, plays only the first time the text scrolls in. Default: true |
| `whileInView` | `boolean` | `false` | No | Waits until the text scrolls into view before playing. Default: false |

## More in Text Animation

- [Text Scramble](https://beui.dev/components/motion/text-animation/text-scramble.md)
- [Dia Text Animation](https://beui.dev/components/motion/text-animation/chromatic-reveal.md)
- [Text Shimmer](https://beui.dev/components/motion/text-animation/shimmer.md)
- [Text Cascade](https://beui.dev/components/motion/text-animation/cascade.md)

## Source

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