{"_id":"@crazygl/hero-sdf-lens-blur","name":"@crazygl/hero-sdf-lens-blur","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-sdf-lens-blur","version":"0.1.1","description":"SDF Lens Blur — A single heading word, rasterised to a true signed distance field and rendered in WebGL. Where the cursor hovers, the letters dissolve into a soft luminous bokeh — a variable-radius radial blur kernel… A customizable CrazyGL animated hero ","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/sdf-lens-blur","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-sdf-lens-blur.git"},"publishConfig":{"access":"public"},"keywords":["sdf","lens","blur","bokeh","typography","text","shader","pointer","premium","minimal","sdf-lens-blur","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas","three"],"bugs":{"url":"https://github.com/crazygl-com/hero-sdf-lens-blur/issues"},"gitHead":"22d567a70c213b1497d4946a1b562652f129e518","_id":"@crazygl/hero-sdf-lens-blur@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-+9L9hLYTvhmqtD+j7kGqtZpGomBhRvZIonayikEeKPEW2upE01YgbQNFpzl6HUi5eIoLrQRSVbHxzEAxtL66Hw==","shasum":"2f1e5597671ae4db27bbe6c740947b844c3adf1b","tarball":"https://registry.npmjs.org/@crazygl/hero-sdf-lens-blur/-/hero-sdf-lens-blur-0.1.1.tgz","fileCount":11,"unpackedSize":52399,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDZuwaopNZk7S3yCS6gChYFIoboHvamldg+t8UOZPG72AiEA1m1Zd+f0dBivfKAHBeyINNI1CcsDzDnBBY/iSbc8Xu0="}]},"_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-sdf-lens-blur_0.1.1_1782922529087_0.7348195498321988"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:15:28.877Z","0.1.1":"2026-07-01T16:15:29.285Z","modified":"2026-07-01T16:15:29.583Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"SDF Lens Blur — A single heading word, rasterised to a true signed distance field and rendered in WebGL. Where the cursor hovers, the letters dissolve into a soft luminous bokeh — a variable-radius radial blur kernel… A customizable CrazyGL animated hero ","homepage":"https://crazygl.com/hero/sdf-lens-blur","keywords":["sdf","lens","blur","bokeh","typography","text","shader","pointer","premium","minimal","sdf-lens-blur","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-sdf-lens-blur.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-sdf-lens-blur/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-sdf-lens-blur/banner-full.png\" alt=\"SDF Lens Blur\" width=\"640\">\n</p>\n\n# @crazygl/hero-sdf-lens-blur\n\nA single heading word, rasterised to a true signed distance field and rendered in WebGL. Where the cursor hovers, the letters dissolve into a soft luminous bokeh — a variable-radius radial blur kernel sampled in distance space, with optional chromatic aberration. Move the cursor across the word to smear it into a beam of light; move away and it snaps back to a razor-sharp typeface.\n\n## Demo\n[SDF Lens Blur](https://crazygl.com/hero/sdf-lens-blur)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-sdf-lens-blur\n```\n\n## Usage\n\n```tsx\nimport SdfLensBlur from '@crazygl/hero-sdf-lens-blur';\n\nexport default function Page() {\n  return (\n    <SdfLensBlur\n      text=\"FOCUS\"\n      fontWeight={200}\n      lensStrength={0.05}\n      glowColor=\"#ffffff\"\n    />\n  );\n}\n```\n\n## Customise\n\n- **Text** — `text` (one short ALL-CAPS word reads best), `fontWeight`, `fontSize`, `letterSpacing`, `textShiftX`/`Y`. The word is drawn into the SDF on the GPU; there is no HTML copy.\n- **Blur** — `baseBlur` (always-on softness), `lensStrength` (peak under cursor), `lensRadius` (Gaussian σ), `chromatic` (lens fringe).\n- **Color** — `textColor`, `backgroundColor`, `glowColor`, `glowIntensity` (additive bloom).\n- **Backdrop** — `transparent` to composite over your own page background.\n\n## Best for\n\n- Minimalist landing pages and type-led brands.\n- Design studios and photography portfolios.\n- Any hero wanting one bold optical gesture on a headline instead of a busy scene.\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-ca5a0862848b936d9e44d5b62da4db7d"}