{"_id":"@crazygl/hero-glass-capsule-product","name":"@crazygl/hero-glass-capsule-product","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-glass-capsule-product","version":"0.1.1","description":"Product Inside a Glass Capsule — A product floats inside a transmissive glass capsule, like a luxury museum object or futuristic sample container — refraction through the shell, a frosted inner layer, a band of… A customizable CrazyGL animated hero sectio","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","three":"^0.160.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"license":"Apache-2.0","author":{"name":"ybouane"},"homepage":"https://crazygl.com/hero/glass-capsule-product","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-glass-capsule-product.git"},"publishConfig":{"access":"public"},"keywords":["three","3d","glass","capsule","refraction","product","premium","scientific","transmission","pbr","glass-capsule-product","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas"],"bugs":{"url":"https://github.com/crazygl-com/hero-glass-capsule-product/issues"},"gitHead":"5a5abcf3f754bcf36ca1d533bc7f1dd8f7745852","_id":"@crazygl/hero-glass-capsule-product@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-mG2HoWl7r1kaZu/GKTXKDvha+h9Aw3AGY7e4wqSwI3WmqbcJJbbs3FYXJW7xx0Svhu54nn5BYaQHJNUqsSvAdA==","shasum":"3e9e4e920c307ff93840e86713ec519c42717e99","tarball":"https://registry.npmjs.org/@crazygl/hero-glass-capsule-product/-/hero-glass-capsule-product-0.1.1.tgz","fileCount":11,"unpackedSize":88383,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDDUG/GP35+KJkE8yJOeHhYAgTsoBrcV44hnpGOVLgXcQIhANV+JMrFu8yIctk+jIQRp32ZujAiRg1CuNzFGF/iKnMw"}]},"_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-capsule-product_0.1.1_1782922333871_0.06580109590590344"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:12:13.681Z","0.1.1":"2026-07-01T16:12:14.006Z","modified":"2026-07-01T16:12:14.265Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Product Inside a Glass Capsule — A product floats inside a transmissive glass capsule, like a luxury museum object or futuristic sample container — refraction through the shell, a frosted inner layer, a band of… A customizable CrazyGL animated hero sectio","homepage":"https://crazygl.com/hero/glass-capsule-product","keywords":["three","3d","glass","capsule","refraction","product","premium","scientific","transmission","pbr","glass-capsule-product","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas"],"repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-glass-capsule-product.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-glass-capsule-product/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-capsule-product/banner-full.png\" alt=\"Product Inside a Glass Capsule\" width=\"640\">\n</p>\n\n# @crazygl/hero-glass-capsule-product\n\nA product floats inside a transmissive glass capsule, like a luxury museum object or futuristic sample container — refraction through the shell, a frosted inner layer, a band of condensation, slow rotation and a soft pedestal glow.\n\n## Demo\n[Product Inside a Glass Capsule](https://crazygl.com/hero/glass-capsule-product)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-glass-capsule-product\n```\n\n## Usage\n\n```tsx\nimport GlassCapsuleProduct from '@crazygl/hero-glass-capsule-product';\n\nexport default function Page() {\n  return (\n    <GlassCapsuleProduct\n      heading={'Sealed\\nto perfection.'}\n      productModel=\"https://crazygl.com/samples/nokia-phone.glb\"\n      layout=\"content-left\"\n    />\n  );\n}\n```\n\n## Customise\n\n- **Product** — `productModel` (GLB/GLTF) auto-fits to the capsule interior and keeps its authored PBR by default; `productScale`, `productLift`, plus a tinted-studio override (`useGlbMaterials`, `productColor`, `productMetalness`, `productRoughness`).\n- **Capsule glass** — `capsuleTint`, `glassRoughness`, `glassThickness`, `glassIOR`, `dispersion`, `frostAmount`, and `condensation` shape the refraction, frost, and fogged base.\n- **Motion** — `rotationSpeed`, `floatAmount` (bob), and `parallaxStrength` (pointer orbit).\n- **Lighting & stage** — `accentColor`, `glowStrength`, `exposure`, optional `environmentImage` HDRI override, and `bgTopColor` / `bgBottomColor` backdrop.\n\n## Best for\n\n- Beauty, supplement, and wellness brands\n- Premium tech-device and gadget launches\n- Collectibles and limited editions\n- Any \"scientific / clinical / precious\" product story\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-c8c07840ccdef2b409ec68c9a6d308e4"}