{"_id":"@crazygl/hero-text-masking","name":"@crazygl/hero-text-masking","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-text-masking","version":"0.1.1","description":"Text Masking — Headline acts as a window onto a slowly drifting photograph — large letterforms, the photograph showing through them, a clean colored hero around the cut-out. 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/text-masking","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-text-masking.git"},"publishConfig":{"access":"public"},"keywords":["mask","image","typography","text-masking","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas","three"],"bugs":{"url":"https://github.com/crazygl-com/hero-text-masking/issues"},"gitHead":"c1c4573e46b1d6f965854d4a4b162b4cddbabe5a","_id":"@crazygl/hero-text-masking@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-k7+SPSdZgL7Y6zZGTi1msk5an0jrinEZDdtJouCS4kQnqprQyCUkszpcOPGQxpY4n7LE/BDogkiyJj1rhMlLhA==","shasum":"54c24c64c8efbe5a68b11c0f80e225cbd40ad826","tarball":"https://registry.npmjs.org/@crazygl/hero-text-masking/-/hero-text-masking-0.1.1.tgz","fileCount":9,"unpackedSize":25877,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCfO876+kV9zFNROWgSap4JaDPL+ijs8r3FG9jMvWBF2wIhAJyMVMUn6pwT8VcpDiewoSEGT3m/K6yAFcgN7A7/2VjY"}]},"_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-text-masking_0.1.1_1782922706686_0.9963400228734416"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:18:26.472Z","0.1.1":"2026-07-01T16:18:26.851Z","modified":"2026-07-01T16:18:27.063Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Text Masking — Headline acts as a window onto a slowly drifting photograph — large letterforms, the photograph showing through them, a clean colored hero around the cut-out. A customizable CrazyGL animated hero section — WebGL, React, drop-in.","homepage":"https://crazygl.com/hero/text-masking","keywords":["mask","image","typography","text-masking","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-text-masking.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-text-masking/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-text-masking/banner-full.png\" alt=\"Text Masking\" width=\"640\">\n</p>\n\n# @crazygl/hero-text-masking\n\nHeadline acts as a window onto a slowly drifting photograph — large letterforms, the photograph showing through them, a clean colored hero around the cut-out.\n\n## Demo\n[Text Masking](https://crazygl.com/hero/text-masking)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-text-masking\n```\n\n## Usage\n\n```tsx\nimport TextMasking from '@crazygl/hero-text-masking';\n\nexport default function Hero() {\n  return (\n    <TextMasking\n      heading=\"wild\"\n      image=\"https://crazygl.com/samples/nature1.avif\"\n      driftSpeed={0.4}\n    />\n  );\n}\n```\n\n## Customise\n\n- **Content** — `heading`, `subheading`, `image` (the masked photo).\n- **Drift** — `driftSpeed`, `driftAmount` (idle pan), `parallaxStrength` (pointer parallax).\n- **Typography** — `fontSize`, `headingFontFamily`, `headingFontWeight`, `letterSpacing`, `subColor`.\n- **Backdrop** — `transparentBackground`, `bgColor`.\n\n## Best for\n\n- Bold editorial and brand hero statements.\n- Travel, nature, fashion, and photography sites.\n- Product or campaign launches where one word carries the imagery.\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-b71d1f3087079d4024bdf0c7bede2c49"}