Skip to content

Design study 05 · Liquid metal

A 3D scene with no 3D model — just mathematics and light.

Seven drops — four chrome, three molten orange — orbit, merge, and split like mercury above a glossy floor, reflecting a desert-dusk sky. Move the pointer and one molten drop is pulled toward it; press Splash and they burst apart, then find each other again.

Concept build · not client work

Written for this site to demonstrate the technique. On your project it would be designed around your brand, content, and performance budget.

Live demo: Liquid metal

WebGL is unavailable here — showing the still version.

Try it: Move or drag to pull a drop toward the pointer. Press Splash to scatter them. Live demo — running in your browser
Built with
WebGL · Raymarching · Signed distance fields
Libraries
None — plain browser code
Starts
When it nears the screen
Reduced motion
Still frame + Play button
Script weight
Measured when the demo loads

The case study

What it solves, and how it stays fast.

01

The problem it’s built for

Businesses that sell finish and precision — auto detailing, ceramic coating, metal fabrication, jewellery, premium clinics — need a visual that says “flawless surface”. Product renders are static and expensive to commission. The aim was a centrepiece with real reflections and real depth, generated live in the brand palette from a few kilobytes of shader code.

02

How it’s built

  • There is no geometry: one fragment shader raymarches a distance field of seven spheres joined by a smooth union — which is what lets them fuse and separate seamlessly.
  • Where chrome and molten drops touch, the two materials bleed into each other.
  • Lighting is entirely procedural: fresnel reflections of a dusk sky with a low sun, one extra bounce so molten drops glow in the chrome, ambient occlusion in the creases, and a glossy floor that mirrors the liquid and takes soft shadows.
  • The drops are moved in JavaScript as springs chasing looping orbits, which is what makes pointer pulls and the Splash possible.
03

Performance choices

  • Rendering is capped at about 0.75 million pixels (device pixel ratio at most 2), so a large stage is drawn below native size and scaled up.
  • Up to 56 march steps per pixel with early exit; rays that cannot touch a drop skip the march entirely.
  • When frames run slow it steps down — fewer march steps first, then lower resolution.
  • Starts when it nears the screen; pauses offscreen and in hidden tabs.
04

Accessibility & fallbacks

  • With reduced motion, one composed still shows with a Play button; Splash shows a different arrangement instead of animating.
  • Without WebGL (or the precision it needs), a CSS poster of chrome and molten spheres on a dusk horizon shows instead.
  • Splash and Pause are real buttons, and the canvas is described for screen readers.
  • Nothing flashes.

Where it fits

Where a design like this earns its place.

Hero centrepieces for trades that sell shine and precision.

Shine & precision trades

Auto detailing, ceramic coating, metal fabrication, jewellers — the finish as the hero.

Premium clinics

A “precision technology” visual for dental, med-spa, and similar practices.

Pricing headers & 404s

A memorable centrepiece where a stock photo would be forgotten.

Scoped like everything else: available on its own or added to any website package, flat-quoted in your launch plan with a written performance budget — what it does, what it may weigh, and how it behaves on phones and with reduced motion.

Want a moment like this on your site?

Tell us where it should go. You get a written scope, a performance budget, and one flat quote — before anything is built.

Prefer to start with a quick message? Use the message button in the corner — a real person replies, typically within one business day.

Use the up and down arrow keys to move through results, Enter to open one, Escape to close.