Experiment 05

Liquid Glass

SVG displacement map glass refraction on live HTML

Published: Jun 22, 2026

Updated: Aug 5, 2026


Inspired by Apple's Liquid Glass design language and Aave's web implementation.

On the left is the refracted result, on the right the map that drives it.

Red and green encode per-pixel displacement — how far each pixel bends horizontally and vertically, with a neutral 50% grey meaning no bend at all. Blue is an independent specular field that a later pass lifts into the rim highlight. The map is regenerated only when the shape changes, never per frame: dragging the lens just moves where this image is sampled.

Image Refraction

Drag the lens over the image. The displacement map creates a classic refraction effect.

Live HTML Refraction

The SVG filter bends live DOM text without rasterization. The text remains fully selectable.

UI Refraction

Animated elements demonstrate real-time refraction on CSS gradients.

01

Contact

Open to new projects, ideas, and conversations