{"_id":"@crazygl/hero-magnetic-logo","name":"@crazygl/hero-magnetic-logo","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-magnetic-logo","version":"0.1.1","description":"Magnetic Logo Field — An image-driven particle field. Drop in a logo and the particles drift around then snap into its silhouette in waves. Cursor magnetically pulls or repels the swarm. Sample by alpha, luminosity, or… A customizable CrazyGL animated her","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/magnetic-logo","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-magnetic-logo.git"},"publishConfig":{"access":"public"},"keywords":["particles","logo","magnetic","input-driven","interactive","canvas","premium","magnetic-logo","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","frontend","component","three"],"bugs":{"url":"https://github.com/crazygl-com/hero-magnetic-logo/issues"},"gitHead":"76953c4b0b2fc7a130f10640d15af658515ccbf4","_id":"@crazygl/hero-magnetic-logo@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-tLEck1TXGaieylfIDXuIcTy+G0KApjYGBifsssu6Lw8DbmR96wQQr43ixdncaFbzFc+wSFNNQi1sQmbSDgs6Gw==","shasum":"88b4db61c28f321afeb3e69c982bad67263b8596","tarball":"https://registry.npmjs.org/@crazygl/hero-magnetic-logo/-/hero-magnetic-logo-0.1.1.tgz","fileCount":9,"unpackedSize":52376,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICz93teh/fE/6pZtvec04yKwuwxmAhvZdmxOfrBmrXktAiEA9iRggOkk8PA9SK+ELbKtrJULfqKTDadLjJk9zJ56Maw="}]},"_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-magnetic-logo_0.1.1_1782922421390_0.7562098735522311"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:13:41.166Z","0.1.1":"2026-07-01T16:13:41.533Z","modified":"2026-07-01T16:13:41.747Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Magnetic Logo Field — An image-driven particle field. Drop in a logo and the particles drift around then snap into its silhouette in waves. Cursor magnetically pulls or repels the swarm. Sample by alpha, luminosity, or… A customizable CrazyGL animated her","homepage":"https://crazygl.com/hero/magnetic-logo","keywords":["particles","logo","magnetic","input-driven","interactive","canvas","premium","magnetic-logo","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","frontend","component","three"],"repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-magnetic-logo.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-magnetic-logo/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-magnetic-logo/banner-full.png\" alt=\"Magnetic Logo Field\" width=\"640\">\n</p>\n\n# @crazygl/hero-magnetic-logo\n\nAn image-driven particle field. Drop in a logo and the particles drift around then snap into its silhouette in waves. Cursor magnetically pulls or repels the swarm. Sample by alpha, luminosity, or transparency.\n\n## Demo\n[Magnetic Logo Field](https://crazygl.com/hero/magnetic-logo)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-magnetic-logo\n```\n\n## Usage\n\n```tsx\nimport MagneticLogo from '@crazygl/hero-magnetic-logo';\n\nexport default function Hero() {\n  return (\n    <MagneticLogo\n      logo=\"https://crazygl.com/samples/crazygl.svg\"\n      heading=\"Your logo, alive.\"\n      sampleMode=\"alpha\"\n      cursorForce={1}\n    />\n  );\n}\n```\n\n## Inputs you can plug in\n\n- **Logo** — Transparent SVG (preferred) or PNG. The silhouette becomes the formation the particles snap into, and transparency gives the cleanest edges. JPGs work too — the background is auto-detected and dropped.\n\n## Notable controls\n\n- **Sample by** — How the image is read into the shape: alpha, bright pixels (luminosity), or dark pixels (inverse luminosity). Match it to your logo; the default suits dark marks on transparent backgrounds.\n- **Cursor Force** — Magnetic pull on the swarm. Positive attracts, negative repels; ±1 stays interactive without yanking the whole swarm, ±1.8 is dramatic.\n- **Cycle Animation** — When on, particles loop between free drift and logo formation; when off they stay locked to the mark so it never breaks. Pair with Cycle Period (3–20s) to pace the reveal.\n- **Drift** — Ambient motion when not locked. 0.3–0.5 reads as \"alive\"; above 1 the silhouette gets noisy.\n- **Glow** — How far each particle's halo spreads. 0.5–0.8 is the photogenic range; push past 1.5 for a soft nebula.\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-501858a54f5f821105c4f6f58dcecda4"}