# Liquid Glass JS

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

Canonical page: https://sitepeel.dev/resources/liquid-glass-js/

Website: https://github.com/dashersw/liquid-glass-js

Category: Visual effects. Access: Open source.

## 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.

## 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)

## 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

- [Shaders.com](https://sitepeel.dev/resources/shaders-com/index.md): Open source WebGPU shader components for the web, plus a free desktop app where you design shaders with an AI coding agent.
- [PhotoGradient](https://sitepeel.dev/resources/photogradient/index.md): Make a soft mesh gradient from your own colours or from a photo, tweak the blur and noise, then download it.
- [PatternCraft](https://sitepeel.dev/resources/patterncraft/index.md): 250+ background patterns and gradients for websites, each with CSS or Tailwind code you copy in one click.

All resources: https://sitepeel.dev/resources/index.md. Checked on 2026-12-05.
