Liquid Glass

A study of refraction, optics, and surface tension on the web. Built with pure mathematics, SVG displacement maps, and Astro.

01

The Lens

A free-floating magnifying glass demonstrating real-time backdrop refraction and chromatic aberration over complex DOM elements.

Ricardious
Lens Parameters
Surface
Bezel30
Thickness150
IOR1.5
Refraction1.5
Blur0.5
Specular0.8
Saturation1.3
02

Action Button

A hyper-tactile button with inner tension. Click and hold to feel the surface pull inward.

Button Parameters
Button Controls
Refraction0.8
Hover Boost1.2
Press Boost1.5
Hover Scale1.05
Press Scale0.9
Shadow8
Deploy
03

The Switch

A toggle switch with physical mass. Drag or click to snap. Refraction intensity increases when pressed.

Switch Parameters
Switch Controls
Refraction1
Blur0.2
Specular0.5
Saturation6
04

The Slider

A liquid slider track. The glass thumb stretches and distorts based on dragging velocity.

10%
Slider Parameters
Refraction1
Blur0
Specular0.4
Saturation7
05

The Cursor

A custom glass pointer with spring physics, stretching and refracting based on velocity.

Cursor Parameters
Cursor Controls
Idle Scale1
Hover Scale1.6
Press Scale0.7
Refraction1.5
Blur0
Specular0.75
Saturation7

Liquid Space

06

Liquid Input

A glass input field that reacts to typing with microscopic physical tremors and refraction bursts.

Input Parameters
Input Controls
Focus Scale1.05
Refraction1
Blur0
Specular0.75
Saturation6
Type Pulse X1.5
Type Pulse Y-1
07

Layered FAB

A floating action button whose stacked glass pieces push and settle against each other.

FAB Parameters
FAB Controls
Menu Lift96
Refraction0.9
Blur0.25
Specular0.75
Saturation1.2
Bounce1
MENU
08

Liquid Credit Card

An interactive, 3D parallax credit card floating over animated circles.

Card Parameters
Card Controls
Hover Scale1.02
Refraction0.5
Tilt0.05
Blur0
Specular0.6
Saturation1.2

Please enter your credit card
details below