Skip to content

    Browse components

    Water Image

    An image that ripples like a water surface wherever the cursor passes, with a hint of chromatic split. WebGL.

    Move your cursor across the water
    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/water-image

    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/water-image.json

    Usage

    import { WaterImage } from "@/components/ui/water-image";
    
    <WaterImage src="/lake.jpg" alt="A mountain lake" className="h-96 w-full rounded-3xl" />

    Props

    PropTypeDefaultDescription
    srcstring—Image URL. Must be CORS-enabled.
    altstring—Accessible description of the image.
    strengthnumber8Peak displacement in px.
    speednumber260Px per second the rings travel.
    wavelengthnumber34Px between wave crests.
    lifetimenumber2.5Seconds before a ripple dies out.
    classNamestring—Extra classes for the root element.