Looking through a glass pane in the rain — droplets refract the background, slide down with gravity, and leave thin trails.
import RainOnGlass from '@crazygl/hero-rain-on-glass';
export default function Page() {
return (
<RainOnGlass
heading="Window pane."
backgroundImage="https://example.com/photo.jpg"
dropCount={50}
blur={14}
/>
);
}backgroundImage (cover-fitted; frosted for the pane, sharp inside drops/trails), blur (frosted px).dropCount, dropSize, fallSpeed, refraction, chroma (rainbow rim), trailStrength.heading / subheading, or two-columns / custom, plus heading font.npm install @crazygl/hero-rain-on-glassThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import RainOnGlass from '@crazygl/hero-rain-on-glass';
export default function Landing() {
return (
<RainOnGlass />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import RainOnGlass from '@crazygl/hero-rain-on-glass';
export default function Page() {
return (
<section>
<RainOnGlass
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}