git404hub

what is liquid-glass-element fr?

occupiedbyhim/liquid-glass-element — explained in plain English

Analysis updated 2026-05-18

1JavaScriptAudience · developerComplexity · 2/5LicenseSetup · easy

tl;dr

A WebGL plus CSS effect that turns any HTML element into an Apple style frosted glass panel with realistic light and blur.

vibe map

mindmap
  root((Liquid Glass Element))
    What it does
      Frosted glass effect
      3D edge refraction
      Fresnel reflections
      Sub pixel anti aliasing
    Tech stack
      WebGL
      CSS backdrop filter
      JavaScript
    Use cases
      Login panels
      Signup forms
      Agent skill install
      UI prototyping
    Audience
      Frontend developers
      Coding agent users
    Setup
      Open preview HTML
      No build step
      No dependencies

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Add a frosted glass login panel or modal to a web app

VIBE 2

Give a signup form a realistic depth and light refraction effect

VIBE 3

Install as an agent skill so an AI coding assistant applies the effect automatically

VIBE 4

Prototype Apple style UI aesthetics without writing custom shaders from scratch

what's the stack?

JavaScriptWebGLCSSHTML

how it stacks up fr

occupiedbyhim/liquid-glass-element0xmukesh/docusaurus-tutoriala15n/andrewscheuermann
Stars111
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-12-272015-01-11
MaintenanceDormantDormant
Setup difficultyeasyeasymoderate
Complexity2/52/51/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

Just open the preview HTML file in a browser, no build step or install needed.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

in plain english

Liquid Glass Element turns any HTML element into an Apple style frosted glass panel, using a mix of WebGL and CSS. It combines two layers: the browser's native backdrop filter for the soft frosted blur, and a WebGL canvas underneath that draws the 3D edge bevel, light reflections, and glowing highlights. Together these give a glass panel that looks like it bends and reflects light in a physically believable way, while still running smoothly in the browser. There is no build step and no dependencies to install. You clone the repository and open the preview file directly in a modern browser like Chrome, Edge, Firefox, or Safari, or run a small local server with npx serve for best results. The demo panel can be dragged around the page, resized from any edge or corner, and its blur strength adjusted with a slider, so you can see the effect change in real time. Beyond the demo, the project can also be installed as a skill for AI coding agents such as Claude Code, Codex, Antigravity, and OpenCode. Once installed, you can ask the agent to apply the Liquid Glass effect to an element on your own page, such as a signup form, and it will add the necessary WebGL canvas, shader code, and CSS styling automatically, along with optional dragging, resizing, and blur controls. The visual parameters, like blur amount, corner radius, refraction strength, and highlight sharpness, are exposed as CSS custom properties and shader settings so they can be tuned to fit a project's design. The README also documents the underlying optical math, covering the signed distance field shapes, Gaussian falloff, and lighting calculations used to render the glass. The project is released under the MIT license, so it is free to use in personal or commercial projects.

prompts (copy fr)

prompt 1
Apply the Liquid Glass effect from this repo to my signup form
prompt 2
Show me how to adjust the blur amount and corner radius CSS variables in Liquid Glass Element
prompt 3
Explain how the WebGL canvas and CSS backdrop filter layers work together in this project
prompt 4
Help me install Liquid Glass Element as a skill for Claude Code
prompt 5
Walk me through the signed distance field and Fresnel reflection math used in the shader

Frequently asked questions

what is liquid-glass-element fr?

A WebGL plus CSS effect that turns any HTML element into an Apple style frosted glass panel with realistic light and blur.

What language is liquid-glass-element written in?

Mainly JavaScript. The stack also includes JavaScript, WebGL, CSS.

What license does liquid-glass-element use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is liquid-glass-element to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is liquid-glass-element for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.