{"_id":"@crazygl/hero-product-in-liquid","name":"@crazygl/hero-product-in-liquid","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-product-in-liquid","version":"0.1.1","description":"Product in Liquid — A product floats suspended inside a thick, slowly churning liquid blob that genuinely refracts it. Tinted glass, chromatic dispersion, drifting bubbles and crawling caustics give a sensual, premium… A customizable CrazyGL animated hero","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.184.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"license":"Apache-2.0","author":{"name":"ybouane"},"homepage":"https://crazygl.com/hero/product-in-liquid","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-product-in-liquid.git"},"publishConfig":{"access":"public"},"keywords":["3d","product","liquid","glass","refraction","transmission","bubbles","premium","three","product-in-liquid","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas"],"bugs":{"url":"https://github.com/crazygl-com/hero-product-in-liquid/issues"},"gitHead":"189d5534b9c47e87c164989d3b9b94f7137db1b3","_id":"@crazygl/hero-product-in-liquid@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-0KBBxCMPklLcNaZhidbHUVTd5p/tp6KUoCtBnDggBD9/Uvi9XlXZikWT89W1Pl0v/kEw0K7zA5dUl4Lc28Z0yA==","shasum":"7604d6b6e788dcd5c02dba4e4f29ebbcc4b65ef8","tarball":"https://registry.npmjs.org/@crazygl/hero-product-in-liquid/-/hero-product-in-liquid-0.1.1.tgz","fileCount":9,"unpackedSize":79010,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEZN6jkWYwCEg3uR1DYebNZs+JRaNXekTYgO2ukZQ50bAiATJf8KBuhORNysKV8ZMKzVddGYW1vDJXilGuTbdbEnOA=="}]},"_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-product-in-liquid_0.1.1_1782922481586_0.21003853059740418"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:14:41.421Z","0.1.1":"2026-07-01T16:14:41.729Z","modified":"2026-07-01T16:14:41.951Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Product in Liquid — A product floats suspended inside a thick, slowly churning liquid blob that genuinely refracts it. Tinted glass, chromatic dispersion, drifting bubbles and crawling caustics give a sensual, premium… A customizable CrazyGL animated hero","homepage":"https://crazygl.com/hero/product-in-liquid","keywords":["3d","product","liquid","glass","refraction","transmission","bubbles","premium","three","product-in-liquid","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-product-in-liquid.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-product-in-liquid/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-product-in-liquid/banner-full.png\" alt=\"Product in Liquid\" width=\"640\">\n</p>\n\n# @crazygl/hero-product-in-liquid\n\nA product floats suspended inside a thick, slowly churning liquid blob that genuinely refracts it. Tinted glass, chromatic dispersion, drifting bubbles and crawling caustics give a sensual, premium feel.\n\n## Demo\n[Product in Liquid](https://crazygl.com/hero/product-in-liquid)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-product-in-liquid\n```\n\n## Usage\n\n```tsx\nimport ProductInLiquid from '@crazygl/hero-product-in-liquid';\n\nexport default function Hero() {\n  return (\n    <ProductInLiquid\n      productModel=\"https://example.com/bottle.glb\"\n      liquidColor=\"#00c2d6\"\n      liquidIOR={1.33}\n    />\n  );\n}\n```\n\n## Customise\n\n- **Subject placement** — `layout` (centered / content-left / content-right), `positionX/Y`, `parallaxStrength`.\n- **Product** — `productModel` (GLB/GLTF), `useGlbMaterials`, `productScale`, `productYaw`, `productPitch`, and override colour/metalness/roughness.\n- **Liquid** — `liquidColor`, `liquidIOR`, `liquidThickness`, `liquidRoughness`, `liquidDispersion`, `absorptionDistance`, `blobSize`.\n- **Motion & surface** — `turbulence`, `turbulenceScale`, `surfaceSpeed`, `bubbleCount/Speed/Size`.\n- **Lighting** — `environmentImage` (HDRI), `envIntensity`, `exposure`, key/fill light colour + intensity.\n- **Scene** — `causticIntensity`, `causticColor`, `bgTopColor`, `bgBottomColor`.\n\n## Best for\n\n- Beauty, skincare, and fragrance product pages.\n- Premium drinks, bottled water, and supplement launches.\n- Luxury food and wellness brands.\n- Editorial product reveals where the object is the hero.\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-f8b0baa8c375a9d14c74f0a0de304cd5"}