---
title: "Text Echo Trail"
description: "A heading that moves or scrolls leaves fading copies behind it, like a long-exposure photo."
url: https://gelatinui.com/components/text-echo-trail
markdown_url: https://gelatinui.com/components/text-echo-trail.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-echo-trail"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Echo Trail

> A heading that moves or scrolls leaves fading copies behind it, like a long-exposure photo.

Page: https://gelatinui.com/components/text-echo-trail

## When to use it

Best for: A large heading that leaves fading copies behind it as it moves or scrolls.

- Use `trigger="scroll"` to follow the page scroll, or `loop` to run on its own.
- Use `reach` for how far the copies go.

## When not to use it

- For a row of text that runs across the page, use [Text Scroll Marquee](https://gelatinui.com/components/text-scroll-marquee.md).

## Notes for agents

- Write the text in the Content part and put the Canvas part after it.
- It stops when it is off screen.

## Anatomy

```text
TextEchoTrail
├─ TextEchoTrailContent (0..n)
└─ TextEchoTrailCanvas (0..n)
```

## API reference

### TextEchoTrail

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` |  | A string, or the parts `TextEchoTrailContent` and `TextEchoTrailCanvas`. |
| `trigger` | `"loop" \| "scroll"` | "scroll" | What wakes it: `scroll` (default) a scroll of the page or of a box around it; `loop` a read in every frame while it shows, for a text that a host moves with a transform (a slide, a drag). |
| `reach` | `number` | 1 | The longest trail, in em of the text. Default 1. The canvas reaches this far around it. |
| `locale` | `string` |  | The BCP 47 locale of the text, for the case of `text-transform` on the canvas. Default: the `DisplayLocaleProvider` locale, else `"en-US"`. |

### TextEchoTrailContent

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TextEchoTrailCanvas

No props of its own: `className`, `children`, and every other prop go to the element it renders.

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextEchoTrail | `text-echo-trail` |  | `--echo-trail-text-color`, `--echo-trail-text-reach` |  |
| TextEchoTrailContent | `text-echo-trail-content` |  |  |  |
| TextEchoTrailCanvas | `text-echo-trail-canvas` |  | `--echo-trail-text-reach` |  |

## Usage

Put the heading in the Content part and the Canvas after it.

```tsx title="motion-heading.tsx"
import { TextEchoTrail, TextEchoTrailCanvas, TextEchoTrailContent } from "@/components/pro/text/text-echo-trail";

export function MotionHeading() {
  return (
    <section className="flex flex-col items-center gap-4 py-16 text-center">
      <h1 className="text-7xl font-semibold tracking-tight">
        <TextEchoTrail trigger="loop">
          <TextEchoTrailContent>Built for motion</TextEchoTrailContent>
          <TextEchoTrailCanvas />
        </TextEchoTrail>
      </h1>
      <p className="text-muted-foreground">The heading stays real text for search and copy.</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-echo-trail
```

It adds 29 registry items: 29 files, 3712 lines, and the npm packages `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`.

## 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 Scroll Marquee](https://gelatinui.com/components/text-scroll-marquee.md)
- [Text Perspective](https://gelatinui.com/components/text-perspective.md)
