Skip to content

    Browse components

    Ring Tunnel

    An endless flight through a bending tunnel of glowing rings and spark-lit lines. WebGL.

    Ring Tunnel

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/ring-tunnel

    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/ring-tunnel.json

    Usage

    import { RingTunnel } from "@/components/ui/ring-tunnel";
    
    <div className="relative h-96">
      <RingTunnel colorA="#38bdf8" colorB="#f472b6" />
    </div>

    Props

    PropTypeDefaultDescription
    colorAstring"#38bdf8"First ring color.
    colorBstring"#f472b6"Second ring color, blended by depth.
    speednumber1Flight speed multiplier.
    densitynumber2Rings per unit of depth.
    linesnumber16Lengthwise lines; 0 hides them.
    twistnumber1Spiral of the lengthwise lines.
    glownumber1Line glow strength.
    interactivebooleantrueVanishing point drifts toward the cursor.
    classNamestring—Extra classes for the root element.