---
title: "Text Float Scroll Reveal"
description: "As the page scrolls, each word floats up a short way into its place, in reading order."
url: https://gelatinui.com/components/text-float-scroll-reveal
markdown_url: https://gelatinui.com/components/text-float-scroll-reveal.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-float-scroll-reveal"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Float Scroll Reveal

> As the page scrolls, each word floats up a short way into its place, in reading order.

Page: https://gelatinui.com/components/text-float-scroll-reveal

## When to use it

Best for: A statement or a short heading between two sections that fills in as the reader scrolls past it.

- Set `offset` to move where the reveal starts and ends in the view.
- Set `container` when the text scrolls inside a box and not with the page.

## When not to use it

- For the same effect with another look, use [Text Fade Scroll Reveal](https://gelatinui.com/components/text-fade-scroll-reveal.md).
- For layers that move at their own speed as the page scrolls, use [Parallax](https://gelatinui.com/components/parallax.md).
- For a picture or a section that opens through a shape as it scrolls, use [Mask Reveal](https://gelatinui.com/components/mask-reveal.md).

## Notes for agents

- Float Scroll Reveal owns its look: it builds on Scroll Reveal and takes every other Scroll Reveal prop and part.
- `children` must be a string. Spaces stay between the pieces, so the text wraps as plain text does.
- The reveal is scrubbed: each piece follows the scroll, and a scroll back plays it back. React does not render while the page scrolls.
- A text longer than 40 letters, or Arabic and other joined scripts, reveals by word, also with `by="grapheme"`.
- Default `offset` is `["start 0.9", "end 0.55"]`: the reveal starts when the top of the text is at 90% of the view and ends when its bottom is at 55%.

## Anatomy

```text
TextFloatScrollReveal
```

## API reference

### TextFloatScrollReveal

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `locale` | `string` |  | The BCP 47 locale for the letter and word split (`Intl.Segmenter`). Default: the `DisplayLocaleProvider` locale, else `"en-US"`. |
| `children` | `string` |  | The text. Each piece reveals in turn as the page scrolls. |
| `by` | `"grapheme" \| "word"` |  | The size of the pieces: `word` (default) or `grapheme` (letters, for a short heading). A text longer than `MAX_GRAPHEME_PIECES` (40) or a script that joins its letters (Arabic) reveals by word: each letter is one Motion element and one transform that writes in each scroll frame. |
| `offset` | `ParallaxOffset` |  | Where the reveal starts and ends, in Motion's offset words: "<point of the text> <point of the view>". Default `["start 0.9", "end 0.55"]`: the first piece starts when the top of the text is at 90% of the view height, and the last piece is full when its bottom is at 55%. |
| `container` | `RefObject<HTMLElement \| null>` |  | The scroll box, when the text scrolls inside one and not with the page. |
| `dimOpacity` | `number` |  | The opacity of a piece before its turn, from 0 to 1. Default: the `dim` of the look. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextFloatScrollReveal | `text-float-scroll-reveal` |  |  |  |

## Usage

Put it inside the heading or paragraph of a section. Each word fills in as the reader scrolls past.

```tsx title="mission-section.tsx"
import { TextFloatScrollReveal } from "@/components/pro/text/text-float-scroll-reveal";

export function MissionSection() {
  return (
    <section className="mx-auto flex max-w-3xl flex-col gap-6 px-4 py-40">
      <p className="font-mono text-xs tracking-widest text-muted-foreground uppercase">
        Our mission
      </p>
      <h2 className="text-4xl leading-tight font-semibold tracking-tight">
        <TextFloatScrollReveal>
          We build interfaces that answer every press within a frame and work for every
          person on every device they own.
        </TextFloatScrollReveal>
      </h2>
      <p className="text-lg text-muted-foreground">
        <TextFloatScrollReveal offset={["start 0.95", "end 0.7"]}>
          Fast by default, kind by design.
        </TextFloatScrollReveal>
      </p>
    </section>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/text-float-scroll-reveal
```

It adds 24 registry items: 23 files, 4159 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Text Fade Scroll Reveal](https://gelatinui.com/components/text-fade-scroll-reveal.md)
- [Text Blur Scroll Reveal](https://gelatinui.com/components/text-blur-scroll-reveal.md)
- [Parallax](https://gelatinui.com/components/parallax.md)
- [Mask Reveal](https://gelatinui.com/components/mask-reveal.md)
- [Typography](https://gelatinui.com/components/typography.md)

## Motion

| Part | Motion |
| --- | --- |
| Opacity | none · each word goes from dim to full over its equal part of the scroll, in the same frame as the scroll, with no easing |
| Float, blur, scale, slide | none · each piece moves 0.6em, blurs 0.3em, or grows from 70% over its part of the scroll on the panel curve (0.2, 0.4, 0.2, 1); about four pieces move at once |
| Scroll back | none · the pieces go back the same way, in reverse order |
