Account

Backgrounds

Creative

Scanline Background

Fine lines, a slow refresh bar and curved-glass edges. Where Scanline textures an existing panel, this is the backdrop of a section.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add scanline-background

Usage

Example
import { ScanlineBackground } from "@/components/galactrex/scanline-background";

<section className="relative overflow-hidden">
  <ScanlineBackground />
  <h1 className="relative">Channel 3</h1>
</section>

Source

Installs to components/galactrex/scanline-background.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
spacingnumber4Gap between lines in px.
opacitynumber0.14Line strength, 0 to 1.
sweepbooleantrueA refresh bar sweeping down.
speednumber7Seconds per sweep.
vignettebooleantrueDarken the edges like curved glass.
colorstringvar(--gxui-ink)Line colour.
classNamestring—Extra classes for the outer element.

Variants

  • Broadcast. Lines, sweep and vignette.
  • Flat panel. `vignette={false} sweep={false}`.

Accessibility

  • Decorative only and aria-hidden; never takes pointer events.

Motion and reduced motion

  • Transform-only sweep.
  • Stops offscreen.
  • Reduced motion: no sweep.