{"_id":"@crazygl/hero-rain-on-glass","name":"@crazygl/hero-rain-on-glass","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-rain-on-glass","version":"0.1.1","description":"Rain on Glass — Looking through a glass pane in the rain — droplets refract the background, slide down with gravity, and leave thin trails. 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/rain-on-glass","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-rain-on-glass.git"},"publishConfig":{"access":"public"},"keywords":["rain","droplets","refraction","glass","premium","rain-on-glass","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas","three"],"bugs":{"url":"https://github.com/crazygl-com/hero-rain-on-glass/issues"},"gitHead":"8fe87ce49e3a0d43fcd9d2e03036ef6ff360cb40","_id":"@crazygl/hero-rain-on-glass@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-sZ8o6PMU5b3BuFaCeQYZzzDuRby5TR801VIT0IsaPYf+OiGPQqaZpjLt1MN4hpxLpc/pshiV/xjDrtTFnLt1MQ==","shasum":"b3afb5d6dd6f8789d407d09692d15f35666c3173","tarball":"https://registry.npmjs.org/@crazygl/hero-rain-on-glass/-/hero-rain-on-glass-0.1.1.tgz","fileCount":9,"unpackedSize":46816,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEcK5wGtz7h57UCuEPVjtRehBUOvfb5XWwHYO9O2BTvqAiACVjIAV3lpBC8ICnAHx3C4zVZF2Hb1G3XRya7KilZ18w=="}]},"_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-rain-on-glass_0.1.1_1782922490519_0.8751328955361124"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:14:50.402Z","0.1.1":"2026-07-01T16:14:50.658Z","modified":"2026-07-01T16:14:50.839Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Rain on Glass — Looking through a glass pane in the rain — droplets refract the background, slide down with gravity, and leave thin trails. A customizable CrazyGL animated hero section — WebGL, React, drop-in.","homepage":"https://crazygl.com/hero/rain-on-glass","keywords":["rain","droplets","refraction","glass","premium","rain-on-glass","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-rain-on-glass.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-rain-on-glass/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-rain-on-glass/banner-full.png\" alt=\"Rain on Glass\" width=\"640\">\n</p>\n\n# @crazygl/hero-rain-on-glass\n\nLooking through a glass pane in the rain — droplets refract the background, slide down with gravity, and leave thin trails.\n\n## Demo\n[Rain on Glass](https://crazygl.com/hero/rain-on-glass)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-rain-on-glass\n```\n\n## Usage\n\n```tsx\nimport RainOnGlass from '@crazygl/hero-rain-on-glass';\n\nexport default function Page() {\n  return (\n    <RainOnGlass\n      heading=\"Window pane.\"\n      backgroundImage=\"https://example.com/photo.jpg\"\n      dropCount={50}\n      blur={14}\n    />\n  );\n}\n```\n\n## Customise\n\n- **Background** — `backgroundImage` (cover-fitted; frosted for the pane, sharp inside drops/trails), `blur` (frosted px).\n- **Rain** — `dropCount`, `dropSize`, `fallSpeed`, `refraction`, `chroma` (rainbow rim), `trailStrength`.\n- **Content** — `heading` / `subheading`, or `two-columns` / `custom`, plus heading font.\n\n## Best for\n\n- Moody product launches and music/film promo pages.\n- Atmospheric editorial sites.\n- Hospitality and travel brands wanting a cinematic, rainy mood.\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-d6ba7bcc085194f7a2447937b18e66af"}