{"_id":"@crazygl/hero-glass-typography","name":"@crazygl/hero-glass-typography","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-glass-typography","version":"0.1.1","description":"Glass Typography — A headline cast in transparent optical glass: Three.js TextGeometry extruded into a real 3D object, rendered with MeshPhysicalMaterial (transmission, IOR, dispersion, clearcoat) so it visibly refracts… 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","three":">=0.158.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"three":{"optional":false}},"license":"Apache-2.0","author":{"name":"ybouane"},"homepage":"https://crazygl.com/hero/glass-typography","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-glass-typography.git"},"publishConfig":{"access":"public"},"keywords":["glass","typography","headline","three","transmission","dispersion","refraction","pbr","luxury","premium","glass-typography","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas"],"bugs":{"url":"https://github.com/crazygl-com/hero-glass-typography/issues"},"gitHead":"529767a52acd353b462b9576bd0968cc5f2eee48","_id":"@crazygl/hero-glass-typography@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-g6Vk3MEBV5MfBJZEogtUuZVIYCOlfd6ohVPRtc8l3XPxwCfVOVWtzdX+788/KqDGiSHeZ4xVNlj9UpHctS7nag==","shasum":"6eb9b1bb67d9bcd3a2b9e5733cc42d79e147d5b0","tarball":"https://registry.npmjs.org/@crazygl/hero-glass-typography/-/hero-glass-typography-0.1.1.tgz","fileCount":11,"unpackedSize":84183,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD+8swtx5cdCgfCoHkXrg+0Bp13s0WbTwtdmZhBKVWpbQIgFngd+2ouJFtJhxFhHnpOb8S5cIl4d0utwWP/pqzfBA4="}]},"_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-typography_0.1.1_1782922337492_0.3124463638104471"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:12:17.247Z","0.1.1":"2026-07-01T16:12:17.640Z","modified":"2026-07-01T16:12:17.959Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Glass Typography — A headline cast in transparent optical glass: Three.js TextGeometry extruded into a real 3D object, rendered with MeshPhysicalMaterial (transmission, IOR, dispersion, clearcoat) so it visibly refracts… A customizable CrazyGL animated he","homepage":"https://crazygl.com/hero/glass-typography","keywords":["glass","typography","headline","three","transmission","dispersion","refraction","pbr","luxury","premium","glass-typography","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-typography.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-glass-typography/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-typography/banner-full.png\" alt=\"Glass Typography\" width=\"640\">\n</p>\n\n# @crazygl/hero-glass-typography\n\nA headline cast in transparent optical glass: Three.js TextGeometry extruded into a real 3D object, rendered with MeshPhysicalMaterial (transmission, IOR, dispersion, clearcoat) so it visibly refracts the moving gradient behind it. Pointer parallax tilts the camera and CTA hover sweeps a bright edge highlight across the letters.\n\n## Demo\n[Glass Typography](https://crazygl.com/hero/glass-typography)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-glass-typography\n```\n\n## Usage\n\n```tsx\nimport GlassTypography from '@crazygl/hero-glass-typography';\n\nexport default function Page() {\n  return (\n    <GlassTypography\n      heading=\"Crystalline.\"\n      backgroundImage=\"https://crazygl.com/samples/nature1.avif\"\n      ior={1.45}\n      dispersion={1.2}\n    />\n  );\n}\n```\n\n## Customise\n\n- **Content** — `heading` (the word cast in glass), `subheading`.\n- **CTA** — `ctaLabel`, `onCTAClick` (URL string or function); hovering it triggers the sweep.\n- **Glass material** — `textColor`, `transmission`, `roughness`, `ior`, `glassThickness`, `dispersion`.\n- **Lighting** — `envIntensity` (procedural HDRI strength).\n- **Backdrop** — `bgMode` (`image` / `gradient`), `backgroundImage` (image or video, cover-fit, screen-locked), or `bgGradientStart/End/Angle` + `bgAnimationSpeed`.\n- **Interaction & sweep** — `pointerParallax`, `sweepColor`, `sweepDuration`.\n- **Typography** — `headingFontFamily`, `headingFontWeight`, `headingY`.\n\n## Best for\n\n- Luxury product pages and premium SaaS / design-tool launches\n- Fintech and private-banking landing pages\n- High-end agency and portfolio sites where the headline is the hero object\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-f2f08aa38a6307ed4e1d6af9873968a5"}