# LiquidGlass [![LiquidGlass Banner](https://liquid-glass.ybouane.com/banner.jpg)](https://liquid-glass.ybouane.com/) A liquid glass effect library for the web. **[Live Demo](https://liquid-glass.ybouane.com/)** Apply realistic glass refraction, blur, chromatic aberration, and lighting effects to any HTML element using WebGL shaders. ## Demo [https://liquid-glass.ybouane.com/](https://liquid-glass.ybouane.com/) ## Installation ```bash npm install @ybouane/liquidglass ``` Or skip the install and import directly from a CDN: ```html ``` ## Quick Start ```html

Hello World

0
Glass Panel
``` ## How It Works 1. **Non-glass children of the root** are rasterised onto a hidden canvas using `html-to-image` (which clones the subtree, inlines computed styles, and renders via SVG `foreignObject`). Static children are captured once and cached; children with `data-dynamic` (or any `