Skip to content

    Browse components

    Parallax Strings

    Three depth layers of thin glowing wave lines drifting with parallax and parting around the cursor.

    Parallax Strings

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/parallax-strings

    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/parallax-strings.json

    Usage

    import { ParallaxStrings } from "@/components/ui/parallax-strings";
    
    <div className="relative h-96 bg-black">
      <ParallaxStrings colors={["#a78bfa", "#22d3ee", "#c6ff3d"]} />
    </div>

    Props

    PropTypeDefaultDescription
    colorsstring[]["#a78bfa","#22d3ee","#c6ff3d"]Up to three colors blended across each ribbon.
    lineCountnumber14Lines per layer.
    lineWidthnumber1.2Line width in px.
    amplitudenumber1Wave height.
    speednumber1Animation speed.
    bendnumber1How strongly lines part around the cursor.
    parallaxnumber1Layer shift with the cursor.
    classNamestring—Extra classes for the root element.