Add standalone Liquid Glass Kit package#88
Draft
matthewro7263-hub wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Matt_Doberman <matthewro7263-hub@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the Liquid Glass Kit as a new top-level
liquid-glass-kit/folder — a framework-free liquid-glass / glassmorphism refraction kit (SVGfeDisplacementMap+ CSS rim/specular/chromatic highlights, with an optional WebGL lens) and a Vite-powered demo playground.Contents:
src/liquid-glass.js—LiquidGlassclass, auto-attacher (attachLiquidGlass), displacement-map generatorsrc/liquid-glass.css— lens shell + rim/specular/chromatic highlight stylingsrc/liquid-glass-webgl.js— optional WebGL lens pathindex.html+demo/main.js— interactive demo with tunable sliders and component recipesREADME.md,package.json(ownvite-based dev/build/preview scripts)The package is self-contained (its own
package.json/node_modules, gitignored) and is not wired into the main app, so it has no impact on the Cel build.Verification
npm install+npm run buildinliquid-glass-kit/— builds successfully (index.html + CSS + JS bundle).npm run devdemo verified in-browser: the glass lens follows the cursor and refracts live DOM content; sliders (scale/chroma/blur/depth/…) update the effect in real time; component recipes (slider, switch, buttons, segmented control, QR, video controls) render the effect.Known minor cosmetic items in the demo page (not the core effect): the demo references Inter web fonts that 404 (falls back to system fonts), the "Video controls" recipe shows an empty video placeholder, and elastic-button label text is slightly clipped.
Walkthrough
liquid_glass_kit_demo.mp4
Cursor-following liquid-glass lens refracting live content, with live slider adjustments and component recipes.
Liquid Glass Kit initial state
Effect after adjusting scale/chroma/blur
Component recipe examples
To show artifacts inline, enable in settings.