Skip to content

    Browse components

    Layer Swells

    Stacked gradient waves rolling at different speeds, each casting a soft shadow on the layer behind.

    Layer Swells

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/layer-swells

    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/layer-swells.json

    Usage

    import { LayerSwells } from "@/components/ui/layer-swells";
    
    <div className="relative h-96">
      <LayerSwells />
    </div>

    Props

    PropTypeDefaultDescription
    colorsstring[]["#312e81","#5b21b6","#a21caf","#db2777","#f97316"]One color per wave, back to front (up to six).
    amplitudenumber1Wave height.
    speednumber1Animation speed.
    shadownumber0.6Depth shadow between layers.
    heightnumber0.72Position of the back wave (0 bottom, 1 top).
    classNamestring—Extra classes for the root element.