CrazyGLCrazyGLHomeExploreGitHubBrowse heroesLoading hero…← Back to gallery@crazygl/fireflies

Fireflies

Glowing fireflies drift over a stylised mountain horizon. The cursor attracts the swarm and makes them flare bright.

ReactWebGLInteractiveFont#fireflies#particles#glow#interactive#premium

Usage

import Fireflies from '@crazygl/hero-fireflies';

export default function Hero() {
	return (
		<Fireflies
			heading="Glow."
			fireflyCount={60}
			cursorPull={1}
		/>
	);
}

Customise

  • SceneskyTop / skyBottom, showMountains, mountainColor, fireflyColor, accentColor.
  • FirefliesfireflyCount, fireflySize, drift speed, cursorPull.
  • Content & typography — heading / subheading / two-column / custom content, plus heading font.

Best for

  • Wellness, meditation, and nature brands
  • Hospitality and travel landing pages
  • Creative studios wanting a calm, magical mood
  • Children's storytelling and games
01 · Install the package

One command, zero config.

npm install @crazygl/hero-fireflies
02 · Render the component

Import once, drop it in.

The component takes the same props you see in the live customizer on the right — every default ships poster-quality.

hero.tsx
import Fireflies from '@crazygl/hero-fireflies';

export default function Landing() {
  return (
    <Fireflies />
  );
}
03 · Use it in a page

SSR-safe by default.

The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.

page.tsx
// 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>
  );
}
You might also like

Similar heroes

Constellation Network

Nodes float in 2-D space and connect to their nearest neighbours with glowing lines. The cursor attracts nearby nodes, redrawing the graph as you move.

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 transparency.

Gravitational Particles

Hundreds of particles orbit invisible gravity wells. The cursor adds a temporary attractor that bends nearby paths into fresh orbits.

Logo Edge Glow

Upload an SVG or transparent PNG logo and light it with a neon inner glow — a bright, radial-gradient rim clipped to the silhouette that fades to a dark core, and intensifies toward your cursor as it approaches.

Logo Sand Formation

Thousands of glowing sand grains drift on a warm desert current and re-form the supplied logo. Pointer movement scatters them in a Gaussian shockwave; springs and damping pull each grain back into the silhouette.

Floating Neon Logo Sign

The logo becomes a 3D neon tube sign floating in a dark cinematic scene. Segments flicker on during boot, then settle into a gentle pulse. Smoke drifts behind; hovering brightens the tubes.
Live customizer

Fireflies

Sky topSky bottomShow mountainsMountain colourFireflyFirefly accentCount60Size1Drift speed0.5Cursor pull1Heading FontInteractivityWhich input drives the hero — try Scroll if you want the page to drive motion.
CrazyGL · crazygl.comProgrammable hero sections for real websites.