Skip to content

    Browse components

    CRT Warp

    A glowing gradient seen through an old CRT: barrel curvature, scanlines, RGB mask, flicker and a rolling bar. WebGL.

    CRT Warp

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/crt-warp

    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/crt-warp.json

    Usage

    import { CrtWarp } from "@/components/ui/crt-warp";
    
    <div className="relative h-96">
      <CrtWarp curvature={0.5} />
    </div>

    Props

    PropTypeDefaultDescription
    colorsstring[]["#1a0b3d","#ff2e88","#ffb347"]Three gradient colors, bottom to top.
    speednumber1Gradient drift speed multiplier.
    curvaturenumber0.5Barrel curvature of the tube.
    scanlinesnumber0.6Scanline darkness.
    masknumber0.5RGB aperture mask strength.
    flickernumber0.5Flicker and rolling bar strength.
    classNamestring—Extra classes for the root element.