Liquid Chrome

Molten metallic liquid WebGL shader with dynamic Fresnel reflections, Blinn-Phong specular highlights, and pointer ripple physics.

Interactive Playground

Move cursor over canvas to interact

Variant

Flow Speed0.35x
Flow Speed0.35x
Ripple Frequency2.2
Ripple Frequency2.2
Deformation Depth0.32
Deformation Depth0.32
Film Grain0.03
Film Grain0.03

Pointer Warp

Anatomy

import { LiquidChrome } from "@shavin/fx";

<div className="relative w-full h-80 rounded-[var(--radius-panel)] overflow-hidden">
  <LiquidChrome
    speed={0.35}
    frequency={2.2}
    amplitude={0.32}
    interactive={true}
    color="theme"
    className="w-full h-full"
  />
</div>

Examples

Obsidian / Pearl Chrome Banner

Dynamic metallic flow reflecting the active design system accent and dark/light mode palette.

Dynamic metallic flow reflecting the active design system accent and dark/light mode palette.
<div className="relative w-full h-64 rounded-[var(--radius-panel)] overflow-hidden border border-hairline">
  <LiquidChrome
    speed={0.3}
    frequency={2.0}
    amplitude={0.35}
    color="theme"
    interactive={true}
    className="w-full h-full"
  />
</div>

Classic Liquid Mercury

High-luster neutral titanium / platinum chrome with silver specular sweeps.

High-luster neutral titanium / platinum chrome with silver specular sweeps.
<div className="relative w-full h-64 rounded-[var(--radius-panel)] overflow-hidden border border-hairline">
  <LiquidChrome
    speed={0.4}
    frequency={2.5}
    amplitude={0.3}
    color="metallic"
    interactive={true}
    className="w-full h-full"
  />
</div>

Props Reference

PropTypeDefaultDescription
color"theme" | "accent-dark" | "accent-light" | "metallic" | string | string[]"theme"Color tinting mode: theme reflection, dark obsidian, light pearl, classic silver metallic, or custom palette.
speednumber0.35Metallic fluid flow time multiplier.
frequencynumber2.2Surface ripple frequency and wave detail scale.
amplitudenumber0.32Molten wave height and depth of normal deformation.
grainnumber0.03Film grain & dither intensity to eliminate color banding.
interactivebooleantrueEnables pointer fluid indentation.
Configure Theme
Theme
Accent Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font