Skip to content

    Browse components

    Mirror Ripple

    A slowly folding mirror-like chrome surface that ripples wherever the cursor moves or clicks. WebGL.

    Mirror Ripple

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/mirror-ripple

    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/mirror-ripple.json

    Usage

    import { MirrorRipple } from "@/components/ui/mirror-ripple";
    
    <div className="relative h-96">
      <MirrorRipple color="#d4dcec" />
    </div>

    Props

    PropTypeDefaultDescription
    colorstring"#d4dcec"Metal tint.
    speednumber1Animation speed multiplier.
    scalenumber3Wave frequency.
    amplitudenumber0.6Height of the flowing folds.
    interactivebooleantrueCursor and click ripples.
    classNamestring—Extra classes for the root element.