{"_id":"@crazygl/hero-magnet-text","name":"@crazygl/hero-magnet-text","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-magnet-text","version":"0.1.1","description":"Magnet Text — Letters are pulled toward the cursor with falloff — close letters attract strongly, distant letters barely tug. Springs return them to the line. 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/magnet-text","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-magnet-text.git"},"publishConfig":{"access":"public"},"keywords":["magnet","cursor","typography","magnet-text","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas","three"],"bugs":{"url":"https://github.com/crazygl-com/hero-magnet-text/issues"},"gitHead":"3886c9efcb5ff2c4505dbfc368d30f3956dad3c4","_id":"@crazygl/hero-magnet-text@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-jb3/OMgsvZ6PL/d00TFtNsDoqoyeipel9I1yPJRl382Q88+wYShVuALu/B+hHxQbLj1eu5ZgQOY2uS3mHx1chQ==","shasum":"11fa301f2362aa48dd6964c2576ef2d67411fb1a","tarball":"https://registry.npmjs.org/@crazygl/hero-magnet-text/-/hero-magnet-text-0.1.1.tgz","fileCount":9,"unpackedSize":25752,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCLBflnmvUOtSXYSjSy30g+u6wUlUuzCQOgPzMj5xGU0AIgDf9zJlTaQthGSSWPdIA2qlTdVZbnoGiLybeuzjXwiD4="}]},"_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-magnet-text_0.1.1_1782922415182_0.8494486897383933"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:13:34.853Z","0.1.1":"2026-07-01T16:13:35.307Z","modified":"2026-07-01T16:13:35.474Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Magnet Text — Letters are pulled toward the cursor with falloff — close letters attract strongly, distant letters barely tug. Springs return them to the line. A customizable CrazyGL animated hero section — WebGL, React, drop-in.","homepage":"https://crazygl.com/hero/magnet-text","keywords":["magnet","cursor","typography","magnet-text","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-magnet-text.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-magnet-text/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-magnet-text/banner-full.png\" alt=\"Magnet Text\" width=\"640\">\n</p>\n\n# @crazygl/hero-magnet-text\n\nLetters are pulled toward the cursor with falloff — close letters attract strongly, distant letters barely tug. Springs return them to the line.\n\n## Demo\n[Magnet Text](https://crazygl.com/hero/magnet-text)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-magnet-text\n```\n\n## Usage\n\n```tsx\nimport MagnetText from '@crazygl/hero-magnet-text';\n\nexport default function Page() {\n  return (\n    <MagnetText\n      heading=\"magnetic\"\n      strength={0.6}\n      radiusPx={260}\n    />\n  );\n}\n```\n\n## Customise\n\n- **Content** — `heading`.\n- **Magnet** — `strength` (pull amount), `radiusPx` (influence radius).\n- **Typography** — `textColor`, `fontSize`, `headingFontFamily`, `headingFontWeight`.\n- **Backdrop** — `transparentBackground`, `bgColor`.\n\n## Best for\n\n- Playful, interactive brand and product headlines\n- Creative-studio and portfolio hero sections\n- Landing pages that reward cursor exploration\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-0ca8d85e52c068f4bcbad47f042f4f26"}