The DOM, but liquid.

Real fluid dynamics on real elements. Your buttons stay buttons: focusable, clickable, read by a screen reader. They are just made of water now.

01 · Accessible

It's still a button.

The liquid is painted under the page; the element is untouched. Press Tab to walk through these three and Enter to make a splash. The focus ring is the browser's own.

Read the terms

A card

Selectable text, a real tab stop, and still a drop of lime.

02 · Pointer

Poke it.

Hover and the liquid swells. Click and it splashes. Move fast across it and it follows your wake.

With WebGPU the labels flow with the liquid, glyph by glyph, and settle back into crisp DOM text.

03 · Materials

Water, honey, jelly.

Three presets, three instances of the engine, one shake. Viscosity, cohesion and recovery are yours to tune.

presets.water

Water

Quick, loose, back home in a blink.

presets.honey

Honey

Thick and slow; it takes its time.

presets.jelly

Jelly

Springy; it wobbles and holds together.

04 · Drag

Grab it. Merge it.

Drag one into another. On a phone: hold, then drag.

Merge here

Drop a pill on this card; they merge, then part when you let go.

One element per call opts out: observe(el, { drag: false }).

05 · Gravity

Tilt your phone.

Gravity leans the liquid; the shape always comes home. On a desktop, turn the dial.

06 · Scroll

It follows you down.

A long run of cards. The far ones rest, parked outside the simulation, and appear at rest when you reach them.

Scroll on.The liquid comes with the page.
Still here.Every card keeps its own drop.
No jitter.Scroll moves whole grid cells.
Far belowthese cards are parked.
Parkedmeans skipped by the simulation.
Halfway.Keep going.
Fast scroll?The liquid sloshes a little.
Then it settlesback into its box.
Out of sight,out of the simulation.
Almost there.One more flick.
Nearly.You can feel the weight.
Arrived at rest.Parked until you got here.

07 · Reduced motion

Calm when you need it.

Two identical cards. The right one runs as it would for a visitor who asked for reduced motion: still and crisp, every control still works.

Motion

Live

Splashes like the rest of the page.

Reduced motion

Still

forceReducedMotion: true

When printed or in forced-colours mode the liquid steps aside and every element shows its own styling.

08 · Install

Pour it into your app.

Vanilla, React or Vue. One instance, any element, no build plugin.

npm install liquiddom@alpha
<button data-liquid>Pour me</button>

<script type="module">
  import { LiquidDOM } from "liquiddom";
  const liquid = await LiquidDOM.create({ autoObserve: true });
</script>