Liquid Glass

Refraction with CSS and SVG — Pure HTML/CSS/JS Demo

Cross-browser compatible: This demo uses SVG filters with the regular filter property instead of backdrop-filter, making it work in Firefox and Chrome. (Pardon me, Safari is broken for whatever reasons)

Interactive Magnifying Glass

Optics Study

Liquid GlassPrecision Lens

Drag the capsule to bend the page. This lens is a compact SVG displacement rig that refracts whatever sits beneath it.

The field comes from a rounded bezel profile; pixels are pushed along its gradient, then topped with a subtle specular bloom for depth.

Sweep across strong edges—high contrast makes the bend snap.

Abstract architectural lines
Optics Study

Liquid GlassPrecision Lens

Drag the capsule to bend the page. This lens is a compact SVG displacement rig that refracts whatever sits beneath it.

The field comes from a rounded bezel profile; pixels are pushed along its gradient, then topped with a subtle specular bloom for depth.

Sweep across strong edges—high contrast makes the bend snap.

Tree Frog
Parameters
Clone (Fallback)
30
150
1.50
1
0.5

Slider Demo

Slider Parameters
0.40
7
1.00
0.0

Switch Demo

Switch Parameters
0.50
6
1.00
0.2

Generated Maps

Displacement Map
Specular Highlight