Chrome
CreativeScanline
Fine lines, a slow rolling band and an optional flicker. For retro screens, terminals and nostalgic heroes.
Install
Included with Creative: needs your API key. Initialize and log in once.
npx @galactrex/ui add scanlineUsage
import { Scanline } from "@/components/galactrex/scanline";
<div className="relative"><Screen /><Scanline /></div>Source
Installs to components/galactrex/scanline.tsx, with the shared motion primitives beside it.
Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.
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 and reduced motion
- Transform roll and optional opacity flicker; pauses offscreen.
- Reduced motion: still lines.