{"_id":"@crazygl/hero-glass-panels","name":"@crazygl/hero-glass-panels","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-glass-panels","version":"0.1.1","description":"Glass Panels — Liquid-glass panels in WebGL — half-sphere bevel, biconvex refraction (entry + exit + thickness), edge-weighted blur mix, multi-light Blinn-Phong specular, Fresnel rim, drop shadow. Drop in any background… A customizable CrazyGL animated he","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./metadata.json":"./metadata.json","./style.css":"./style.css"},"dependencies":{"@crazygl/core":"^0.1.1"},"peerDependencies":{"react":">=18","react-dom":">=18"},"license":"Apache-2.0","author":{"name":"ybouane"},"homepage":"https://crazygl.com/hero/glass-panels","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-glass-panels.git"},"publishConfig":{"access":"public"},"keywords":["glass","glassmorphism","liquid-glass","refraction","chromatic-aberration","fresnel","shader","image-input","premium","glass-panels","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas","three"],"bugs":{"url":"https://github.com/crazygl-com/hero-glass-panels/issues"},"gitHead":"89a12f1fb190c21a2ba4c4b9bcbd8ff081931ec7","_id":"@crazygl/hero-glass-panels@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-ujC8LPQ0yR/M9kdfXSE3erp1YlZX61csm0CM5UhTxzIa2tAI0+1zTCj1ZvtsXkfKVwL/JRiiIvdtyptuZM2MiA==","shasum":"b875d312fef31a479c08918df43faf83ab213336","tarball":"https://registry.npmjs.org/@crazygl/hero-glass-panels/-/hero-glass-panels-0.1.1.tgz","fileCount":9,"unpackedSize":69164,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGGgCMAXbt1SYKBAxOWWVcCUUn5KoOEUPERn8sGjplNwAiAEy7Q5JHO/xaK9cw6cuPUYd3ttyz7BtUmx9EMaJ+FbSw=="}]},"_npmUser":{"name":"ybouane","email":"ybouane@ybouane.com"},"directories":{},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hero-glass-panels_0.1.1_1782922336409_0.9382371041671558"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:12:16.245Z","0.1.1":"2026-07-01T16:12:16.550Z","modified":"2026-07-01T16:12:16.747Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Glass Panels — Liquid-glass panels in WebGL — half-sphere bevel, biconvex refraction (entry + exit + thickness), edge-weighted blur mix, multi-light Blinn-Phong specular, Fresnel rim, drop shadow. Drop in any background… A customizable CrazyGL animated he","homepage":"https://crazygl.com/hero/glass-panels","keywords":["glass","glassmorphism","liquid-glass","refraction","chromatic-aberration","fresnel","shader","image-input","premium","glass-panels","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas","three"],"repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-glass-panels.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-glass-panels/issues"},"license":"Apache-2.0","readme":"<sub>*Hero made by [@ybouane](https://x.com/ybouane).*</sub>\n<p align=\"center\">\n  <img src=\"https://crazygl.com/heroes/hero-glass-panels/banner-full.png\" alt=\"Glass Panels\" width=\"640\">\n</p>\n\n# @crazygl/hero-glass-panels\n\nLiquid-glass panels in WebGL — half-sphere bevel, biconvex refraction (entry + exit + thickness), edge-weighted blur mix, multi-light Blinn-Phong specular, Fresnel rim, drop shadow. Drop in any background image and it gets bent through the glass.\n\n## Demo\n[Glass Panels](https://crazygl.com/hero/glass-panels)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-glass-panels\n```\n\n## Usage\n\n```tsx\nimport GlassPanels from '@crazygl/hero-glass-panels';\n\nexport default function Page() {\n  return (\n    <GlassPanels\n      backgroundImage=\"/photos/nature.avif\"\n      refraction={1.21}\n      chromatic={0.29}\n      blur={0}\n    />\n  );\n}\n```\n\n## Customise\n\n- **Content** — single heading panel, two-column (two panels), or custom node.\n- **Behavior** — `draggable`, `pointerTilt`.\n- **Background** — `backgroundImage`, `blur` (frosted body).\n- **Glass shape** — `cornerRadius`, `bevelDepth`.\n- **Glass physics** — `refraction`, `chromatic`, `fresnel`, `gloss`, `edgeHighlight`, `tint`, `brightness`, `saturation`.\n- **Shadow** — `shadow`, `shadowSpread`, `shadowOffsetY`.\n\n## Inputs you can plug in\n\n- **Background image** — Any JPG, PNG, WebP, or AVIF. This is the scene the glass refracts, so a photo with depth, color, and soft shapes reads far better than flat artwork. Leave it empty to fall back to the built-in mesh gradient.\n\n## Notable controls\n\n- **Refraction** (0–2.5, sweet spot around 1.0–1.4) — how hard the glass bends the background. Push it up for a heavy lens, down for near-flat glass.\n- **Bevel depth** (4–120px, default 58) — how thick the slab appears; it drives how strongly the rim refracts. Drop to ~15px for a thin glass plate.\n- **Chromatic dispersion** (0–3, try 0.2–0.4) — the rainbow split at the silhouette. A little reads as polished glass; 1.0+ goes into prism territory.\n- **Frosted blur** (0–60px) — how blurry the body renders the background. 0 keeps it clear; 20–40px gives a proper frosted look while the rim stays crisp.\n- **Pointer tilt** (0–2.5) — how much panels rotate toward the cursor. 0 for static plates, ~1.0 for a clean 3D-card lean.\n\n\n\nThis hero is part of [CrazyGL](https://crazygl.com), a collection of production-ready WebGL, canvas, 3D, and typography effects. Every CrazyGL hero ships with an agent-ready `SKILL.md` file that helps developers and coding agents adapt the effect into custom landing pages and interactive experiences.\n","readmeFilename":"README.md","_rev":"1-1a82db13c93e446bbfe9f773f950ba48"}