# Mask Reveal Up

Lines rise up from below through a blur, then exit upward with a blur on each line.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## Installation

  <TabsTrigger value="cli">Command</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @framecn/mask-reveal-up
```

<Step>Copy and paste the following code into your project.</Step>

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { MaskRevealUp } from "@/components/framecn/mask-reveal-up";
```

```tsx
<MaskRevealUp text={"First line\nSecond line"} />
```

## API Reference

### MaskRevealUp

| Prop               | Type     | Default                     |
| ------------------ | -------- | --------------------------- |
| `text`             | `string` | `"First line\nSecond line"` |
| `distance`         | `number` | `30`                        |
| `fontSize`         | `number` | `72`                        |
| `color`            | `string` | `"#171717"`                 |
| `fontWeight`       | `number` | `600`                       |
| `speed`            | `number` | `1`                         |
| `fps`              | `number` | `30`                        |
| `durationInFrames` | `number` | `90`                        |
| `className`        | `string` | `-`                         |

## Notes

  Split your text with `\n` to define each line. Lines reveal with a staggered
  cascade and exit in the same order with blur transitions.