# Fade In Left to Right

> A soft-edged mask reveals the text from left to right.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Text Animations › Entrances |
| Live preview | https://uibrik.com/components/fade-left-to-right |
| Writes | 1 file into `components/uibrik/fade-left-to-right/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/fade-left-to-right.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/fade-left-to-right`.

Can't run commands? https://uibrik.com/components/fade-left-to-right/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { FadeLeftToRight } from "@/components/uibrik/fade-left-to-right/fade-left-to-right";

<FadeLeftToRight
  play={0}
  text="Revealed with a soft edge"
  duration={0.9}
  softness={30}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/fade-left-to-right.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `text` | `string` | `"Revealed with a soft edge"` | The copy to animate. |
| `duration` | `number` | `0.9` | Time for the edge to cross the line. |
| `softness` | `number` | `30` | Width of the soft edge. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `play` (required) | `number` |  | Each change plays the effect again; 0 shows its resting state. |

## Where it fits

- **Hero taglines**: A soft mask reading left to right matches how people read the line.
- **Scroll-revealed titles**: A gentle wipe gives section headings an entrance without movement. Pairs with [Line-by-line Rise](https://uibrik.com/components/line-rise.md).
- **Calm portfolio intros**: A slow reveal suits minimal sites where motion should feel quiet.

## Same shelf: Entrances

- [Falling Letters](https://uibrik.com/components/falling-letters.md): Letters drop in and settle with a small bounce.
- [Highlighter](https://uibrik.com/components/highlighter.md): A marker stroke sweeps across a key phrase.
- [Line-by-line Rise](https://uibrik.com/components/line-rise.md): Each wrapped line rises into place in turn.
- [Outline then Fill](https://uibrik.com/components/outline-fill.md): Letters are drawn as outlines, then filled in.
- [Plucked Curve](https://uibrik.com/components/plucked-curve.md): Text rides a curve that wobbles like a plucked string.
- [Ripple to Still](https://uibrik.com/components/ripple-to-still.md): Text ripples like water, then settles.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/fade-left-to-right/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
