Refraction with CSS and SVG — Pure HTML/CSS/JS Demo
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.