Sitepeel

Liquid Glass JS

github.com/dashersw/liquid-glass-js · Visual effects · Open source

Visit site

Plain JavaScript and WebGL code for Apple-style liquid glass panels and buttons that bend the page behind them.

  1. What it is

    A GitHub repo with a small library for glass containers and buttons in three shapes: rounded rectangles, circles and pills. WebGL shaders add refraction and blur, and glass inside glass samples its parent. There is a live demo with controls, and you add it with a few script tags.

  2. Is it for you?

    Made for
    Front-end developers who want a liquid glass effect without React or a build step.
    You need
    A modern browser with WebGL. It uses html2canvas to capture the page
    Price
    Open source (MIT)
  3. What you can do with it

    • Add a glass navigation bar or button to a page
    • Tune glass settings live in the demo
    • Study how WebGL refraction works

    Good to know: One commit from June 2025 and no updates since.

More like this

See all 227 resources