Library navigation

Liquid Surface Background

An interactive liquid surface with metallic reflections, ripples, and iridescent highlights.

An animated liquid surface with metallic reflections, iridescent highlights, and pointer-driven ripples.

Installation

Add the liquid-surface-background component from Hangry UI to this project.
Use the project's package manager to run:
shadcn@latest add https://ui.razeev.com/r/liquid-surface-background.json
Integrate the component with the existing layout and styling.
Keep its interactions and reduced-motion support intact.

How to use

import { LiquidSurfaceBackground } from "@/components/hangry-ui/shader/liquid-surface-background";
<LiquidSurfaceBackground className="grid place-items-center p-12">
<h2 className="typography-section-title text-white">Liquid motion.</h2>
</LiquidSurfaceBackground>;

Props

PropTypeDefaultDescription
speednumber0.35Ambient animation speed. Set to 0 to freeze the surface.
distortionnumber0.8Pointer ripple distortion, clamped to 0–2.
intensitynumber1Surface brightness, clamped to 0–2.
interactivebooleantrueEnable pointer-driven ripples and highlights.

Dependencies

  • vgpu