Glowing fireflies drift over a stylised mountain horizon. The cursor attracts the swarm and makes them flare bright.
import Fireflies from '@crazygl/hero-fireflies';
export default function Hero() {
return (
<Fireflies
heading="Glow."
fireflyCount={60}
cursorPull={1}
/>
);
}skyTop / skyBottom, showMountains, mountainColor, fireflyColor, accentColor.fireflyCount, fireflySize, drift speed, cursorPull.npm install @crazygl/hero-firefliesThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import Fireflies from '@crazygl/hero-fireflies';
export default function Landing() {
return (
<Fireflies />
);
}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 Fireflies from '@crazygl/hero-fireflies';
export default function Page() {
return (
<section>
<Fireflies
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}