Hero Templates

Liquid Chrome

A liquid-chrome form of fused spheres over a black mirror floor: rectangular studio softboxes, one mirror bounce and soft occlusion, sphere-traced in one pass beside left-aligned copy.

Install

bun add ogl

Then copy 2 files into your project:

  • components/registry/liquid-chrome/liquid-chrome.tsx
  • hooks/use-animation-loop.ts

Props

PropTypeDefaultDescription
chromeColorstring (hex)"#dfe4ee"Metal tint on the reflections.
accentColorstring (hex)"#a855f7"The second softbox — the colored glint in the chrome.
backgroundColorstring (hex)"#0a0a12"Studio void behind the blob.
blobCount"2" | "3" | "4" | "5""4"How many spheres melt into the form.
morphSpeednumber1How fast the form breathes and reflows.
smoothnessnumber0.35Blend radius where the blobs fuse — low is lumpy, high is one mass.
glossnumber1Softbox sharpness — below 1 the metal goes to pewter, above 1 the studio lights harden.
quality"40" | "64" | "96""64"March step ceiling — the mirror bounce and the floor reflection run at half of it.
parallaxbooleantrueThe camera sways toward the pointer, easing back on leave.

What It Demonstrates

Loop
An animation that repeats, a set number of times or infinitely.
Morph
One shape smoothly turns into another shape, e.g. Dynamic Island.
Float
A gentle, continuous up-and-down drift that makes a static element feel alive and weightless.
Hover effect
Visual change when the cursor moves over an element.
Hardware acceleration
Animating transform and opacity lets the GPU keep motion smooth.

Related Components

Appears In