Skip to content

    Browse components

    Sweep Line

    A bright scan line sweeping back and forth over a faint dot grid, leaving a fading afterglow. WebGL.

    Sweep Line

    Open
    Customize

    vertical
    horizontal

    Installation

    npx shadcn@latest add @glint-ui/sweep-line

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/sweep-line.json

    Usage

    import { SweepLine } from "@/components/ui/sweep-line";
    
    <div className="relative h-96">
      <SweepLine color="#22d3ee" direction="vertical" />
    </div>

    Props

    PropTypeDefaultDescription
    colorstring"#22d3ee"Scan line and texture color.
    speednumber1Sweep speed multiplier.
    direction"vertical" | "horizontal""vertical"Sweep up/down or left/right.
    cellSizenumber18Dot grid spacing in px.
    trailnumber1Afterglow length.
    intensitynumber1Brightness.
    classNamestring—Extra classes for the root element.