Account

Chrome

Creative

Scanline

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.

Terminal
npx @galactrex/ui add scanline

Usage

Example
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.

See plans

Props

PropTypeDefaultDescription
spacingnumber3Line gap in px.
opacitynumber0.18Line strength.
rollbooleantrueRolling band.
flickerbooleanfalseFaint flicker.
classNamestring—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.