{"_id":"@crazygl/hero-crystal-refraction","_rev":"2-aedf2fa188c7915bd6e43347e8102b84","name":"@crazygl/hero-crystal-refraction","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@crazygl/hero-crystal-refraction","version":"0.1.0","author":{"name":"ybouane"},"license":"Apache-2.0","_id":"@crazygl/hero-crystal-refraction@0.1.0","maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"homepage":"https://crazygl.com/hero/crystal-refraction","bugs":{"url":"https://github.com/crazygl-com/hero-crystal-refraction/issues"},"dist":{"shasum":"37f3fe671334e1df4a73479514517efee210ab07","tarball":"https://registry.npmjs.org/@crazygl/hero-crystal-refraction/-/hero-crystal-refraction-0.1.0.tgz","fileCount":9,"integrity":"sha512-hGHUk7UyaXJeY1zwNmFrYmbcEM+1wgFxsn7dDIPHWZ1vc74c+JWURjgKxo0o9nkzTl8xwRITGHqotYY/MiiavQ==","signatures":[{"sig":"MEUCIHSp1dnVzLkkme5m4VZFFa5Z2/nUnOUIGAPm5j7NiYALAiEA0/z0NROu6T8PgQgyXvilZJZ9EMq51lXRTXG9k1W2peg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51710},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./style.css":"./style.css","./metadata.json":"./metadata.json"},"gitHead":"1414744ae323068a068d3e4451ca1433308668fb","_npmUser":{"name":"ybouane","email":"ybouane@ybouane.com"},"repository":{"url":"git+https://github.com/crazygl-com/hero-crystal-refraction.git","type":"git"},"_npmVersion":"11.12.0","description":"Crystal Refraction Field — drifting raymarched octahedral crystals with biconvex refraction and per-channel rainbow rim.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@crazygl/core":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/hero-crystal-refraction_0.1.0_1782870823664_0.35919969776458416","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@crazygl/hero-crystal-refraction","version":"0.1.1","description":"Crystal Refraction Field — Six raymarched octahedral crystals drift across the screen, refracting the background through each face with per-channel chromatic dispersion at the rim. A customizable CrazyGL animated hero section — WebGL, React, drop-in.","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/crystal-refraction","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-crystal-refraction.git"},"publishConfig":{"access":"public"},"keywords":["crystals","raymarching","refraction","chromatic-aberration","premium","crystal-refraction","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas","three"],"bugs":{"url":"https://github.com/crazygl-com/hero-crystal-refraction/issues"},"gitHead":"8f27461a8d9dab4fe6519620455f026db9611ba4","_id":"@crazygl/hero-crystal-refraction@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-ApSkHSvdvh5Lys2S+8RmrOX6KeLlNquNatxRyVrghXFlGzseUe4V1Vs+gezDHPTPitvjnf6zPwWpkozNjpRdyw==","shasum":"57afaf88f2f71213118c301c7cef80e7832ed116","tarball":"https://registry.npmjs.org/@crazygl/hero-crystal-refraction/-/hero-crystal-refraction-0.1.1.tgz","fileCount":9,"unpackedSize":52231,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDhAUQSWT0lA1DLzRVAKtR0hzcV1grMuxNVYJxpgSjcvgIhALh09mpvTHuCUDEOdBzlIr9phQ528LkZuLJKK2f5CuJP"}]},"_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-crystal-refraction_0.1.1_1782922291467_0.4097146756432899"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T01:53:43.501Z","modified":"2026-07-01T16:11:31.745Z","0.1.0":"2026-07-01T01:53:43.785Z","0.1.1":"2026-07-01T16:11:31.594Z"},"bugs":{"url":"https://github.com/crazygl-com/hero-crystal-refraction/issues"},"author":{"name":"ybouane"},"license":"Apache-2.0","homepage":"https://crazygl.com/hero/crystal-refraction","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-crystal-refraction.git"},"description":"Crystal Refraction Field — Six raymarched octahedral crystals drift across the screen, refracting the background through each face with per-channel chromatic dispersion at the rim. A customizable CrazyGL animated hero section — WebGL, React, drop-in.","maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"readme":"<sub>*Hero made by [@ybouane](https://x.com/ybouane).*</sub>\n<p align=\"center\">\n  <img src=\"https://crazygl.com/heroes/hero-crystal-refraction/banner-full.png\" alt=\"Crystal Refraction Field\" width=\"640\">\n</p>\n\n# @crazygl/hero-crystal-refraction\n\nSix raymarched octahedral crystals drift across the screen, refracting the background through each face with per-channel chromatic dispersion at the rim.\n\n## Demo\n[Crystal Refraction Field](https://crazygl.com/hero/crystal-refraction)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-crystal-refraction\n```\n\n## Usage\n\n```tsx\nimport CrystalRefractionField from '@crazygl/hero-crystal-refraction';\n\nexport default function Page() {\n  return (\n    <CrystalRefractionField\n      heading=\"Refracted.\"\n      subheading=\"Six crystals drifting through space, refracting everything behind them.\"\n      backgroundImage=\"https://crazygl.com/samples/nature4.avif\"\n      crystalCount={6}\n      refraction={1}\n      chromatic={1}\n    />\n  );\n}\n```\n\n## Customise\n\n- **Content** — `contentType` (`heading` / `two-columns` / `custom`), `heading`, `subheading`, or custom nodes.\n- **Background** — `backgroundImage` (cover-fit, refracted through the crystals), or `bgFallbackA`/`B`/`C` for the procedural gradient.\n- **Layout** — `centerX`, `centerY` position the cluster in the frame.\n- **Arrangement** — `crystalCount`, `orbitRadius`, `orbitTilt`, `radiusJitter`, `bobAmount`, `orbitSpeed`, `spinSpeed`.\n- **Crystal** — `tint`, `rimColor`, `refraction`, `chromatic`, `fresnel`, `crystalSize`, `speed` (master time scale).\n- **Typography** — `headingFontFamily`.\n\n## Best for\n\n- Luxury product and jewellery launch pages.\n- Premium SaaS, AI, fintech and crypto brand sites with a high-end feel.\n- Editorial or fashion covers wanting a tactile, light-bending centerpiece.\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","keywords":["crystals","raymarching","refraction","chromatic-aberration","premium","crystal-refraction","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas","three"]}