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
Bezel 30
Thickness 150
IOR 1.5
Refraction 1.5
Blur 0.5
Specular 0.8
Saturation 1.3
02

Action Button

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

Button Parameters
Button Controls
Refraction 0.8
Hover Boost 1.2
Press Boost 1.5
Hover Scale 1.05
Press Scale 0.9
Shadow 8
Deploy
03

The Switch

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

Switch Parameters
Switch Controls
Refraction 1
Blur 0.2
Specular 0.5
Saturation 6
04

The Slider

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

10%
Slider Parameters
Refraction 1
Blur 0
Specular 0.4
Saturation 7
05

The Cursor

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

Cursor Parameters
Cursor Controls
Idle Scale 1
Hover Scale 1.6
Press Scale 0.7
Refraction 1.5
Blur 0
Specular 0.75
Saturation 7

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 Scale 1.05
Refraction 1
Blur 0
Specular 0.75
Saturation 6
Type Pulse X 1.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 Lift 96
Refraction 0.9
Blur 0.25
Specular 0.75
Saturation 1.2
Bounce 1
MENU
08

Liquid Credit Card

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

Card Parameters
Card Controls
Hover Scale 1.02
Refraction 0.5
Tilt 0.05
Blur 0
Specular 0.6
Saturation 1.2

Please enter your credit card
details below