# Grid

Line grid that pans slowly, or a perspective floor that scrolls toward the viewer and fades into a glowing horizon.

```bash
npx shadcn add https://www.reelcn.dev/r/grid.json
```

Usage:

```tsx
<AbsoluteFill>
  <Grid perspective />
  <Center><TextReveal text="Hello" /></Center>
</AbsoluteFill>
```

Use for:

- Tech, developer and product scenes that want structure behind the content
- Retro or futuristic openers with the perspective floor

Avoid:

- A soft dotted texture. Use `dots`

Dependencies:

- `remotion`


## Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| delay? | `number` | — | Frames to wait before entering. |
| duration? | `number` | — | Enter duration in frames. Defaults to 0.6s. Some items reuse `duration` for an unrelated local timing. See that item's own prop docs. |
| exit? | `number \| boolean` | — | Exit at the end of the parent `<Sequence>`. `false` keeps it on screen, a number sets the exit length in frames. |
| motion? | `MotionPersonality` | — | Override the theme's motion personality. |
| poster? | `boolean` | — | Renders fully entered, with no exit: for a still frame or thumbnail. Defaults to `false`. |
| holdFrames? | `number` | — | Delays the start of the exit window by this many frames, for a minimum on-screen hold. Defaults to `0`. |
| background? | `string` | — | Base fill. Defaults to the theme background. |
| color? | `string` | — | Line color. Defaults to the theme border (flat) or a translucent accent (perspective). |
| perspective? | `boolean` | `false` | Draw a 3D floor receding to a horizon instead of a flat panning grid. |
| cell? | `number` | — | Cell size in design units. Defaults to 80 flat, 110 in perspective. |
| lineWidth? | `number` | `2` | Line width in design units. |
| horizon? | `number` | `0.5` | Horizon height as a share of the canvas height (perspective only). |
| glowColor? | `string` | — | Glow along the horizon (perspective only). Defaults to the theme accent; pass "transparent" to remove it. |
| fade? | `number` | `0.6` | How strongly the grid fades toward the edges (flat) or into the horizon (perspective), 0–1. |
| opacity? | `number` | `1` | Line opacity multiplier, 0–1. |
| speed? | `number` | `1` | Pan or scroll speed multiplier. 0 holds the grid still. |
| style? | `CSSProperties` | — |  |
| className? | `string` | — |  |