# Scanline

> The texture of an old monitor over content.

Fine lines, a slow rolling band and an optional flicker. For retro screens, terminals and nostalgic heroes.

- Family: Chrome
- Plan: Creative. Included with Creative.
- Requires: React, Tailwind CSS v4 and the motion package
- Page with a live preview: https://galactrex.com/ui/scanline/
- Licence: https://galactrex.com/ui/license/

## Install

```sh
npx @galactrex/ui login   # once, with an API key from https://galactrex.com/account/
npx @galactrex/ui add scanline
```

It installs to `components/galactrex/scanline.tsx`, with the shared motion helpers beside it. First time in a project: `npx @galactrex/ui init` (setup guide: https://galactrex.com/docs/ui-components-setup/).

## Usage

```tsx
import { Scanline } from "@/components/galactrex/scanline";

<div className="relative"><Screen /><Scanline /></div>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `spacing` | `number` | `3` | Line gap in px. |
| `opacity` | `number` | `0.18` | Line strength. |
| `roll` | `boolean` | `true` | Rolling band. |
| `flicker` | `boolean` | `false` | Faint flicker. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Terminal.** Over a TerminalFrame.

## Accessibility

- Decorative; keeps text readable. Avoid flicker over long reading.

## Motion

- Transform roll and optional opacity flicker; pauses offscreen.
- Reduced motion: still lines.
