# Line by Line Slide

Multi-line text slides in from the left line by line, then slides out to the right.

> 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/line-by-line-slide
```

<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 { LineByLineSlide } from "@/components/framecn/line-by-line-slide";
```

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

## API Reference

### LineByLineSlide

| Prop               | Type     | Default                     |
| ------------------ | -------- | --------------------------- |
| `text`             | `string` | `"First line\nSecond line"` |
| `distance`         | `number` | `48`                        |
| `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 slide in with a cascading
  stagger and exit in the same order.