Liquid glass in the browser
Refraction, dispersion and highlights on top of real DOM elements. Every glass pane on the page is drawn with one WebGL2 call.
MIT License, no dependencies.
new RefractGL(element, options)
Glass in motion
Drag the lens and change its material. iOS glass is see-through: a light haze, slight magnification and a soft light edge. In the settings, every element has twenty presets.
Lens material
Drag with a mouse or a finger. With a keyboard, use the arrow keys; hold Shift for bigger steps.