Skip to content

    Browse components

    Rope Curtain

    A curtain of hanging verlet ropes that sway in a soft breeze and part around the cursor.

    Rope Curtain

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/rope-curtain

    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/rope-curtain.json

    Usage

    import { RopeCurtain } from "@/components/ui/rope-curtain";
    
    <div className="relative h-96">
      <RopeCurtain count={56} />
    </div>

    Props

    PropTypeDefaultDescription
    countnumber56Number of hanging strands.
    lengthnumber0.72Strand length as a fraction of the container height.
    segmentsnumber20Rope segments per strand. More is smoother.
    colorstring"#c6ff3d"Strand color.
    tipColorstring"#22d3ee"Color at the tips.
    thicknessnumber1.5Line width in px.
    swaynumber1Strength of the idle breeze.
    radiusnumber90Px around the cursor that pushes strands aside.
    classNamestring—Extra classes for the root element.