CrazyGLCrazyGLHomeExploreGitHubBrowse heroesLoading hero…← Back to gallery@crazygl/lens-flare

Lens Flare Machine

A cinematic light source moves across the frame, throwing anamorphic streaks, hex aperture ghosts, glowing rings, and chromatic glares.

ReactWebGLInteractiveFont#lens-flare#bloom#cinematic#abstract#premium

Usage

import LensFlare from '@crazygl/hero-lens-flare';

export default function Page() {
  return (
    <LensFlare
      heading="Anamorphic."
      intensity={1}
      streakLength={1}
      ghostCount={6}
    />
  );
}

Customise

  • ContentcontentType, heading, subheading, or custom nodes.
  • Backgroundtransparent, bgTop / bgBottom.
  • FlareflareColor (core), streakColor, ghostColorA / ghostColorB, intensity, streakLength, ghostCount, spinSpeed (hex ghost rotation), trackSpeed (idle light path speed).
  • TypographyheadingFontFamily.

Best for

  • Film studios, photography brands, and music labels.
  • AI and creative-tooling landing pages wanting a cinematic, high-energy feel.
  • Premium hardware / product launches with a single dramatic focal point.
  • Dark-themed event and entertainment sites where glow carries the mood.
01 · Install the package

One command, zero config.

npm install @crazygl/hero-lens-flare
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 LensFlareMachine from '@crazygl/hero-lens-flare';

export default function Landing() {
  return (
    <LensFlareMachine />
  );
}
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 LensFlareMachine from '@crazygl/hero-lens-flare';

export default function Page() {
  return (
    <section>
      <LensFlareMachine
        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

Galaxy Tunnel

A cinematic flythrough — thousands of glowing particles streaming past a virtual camera with velocity trails, bloom, and chromatic vignette.

Black Hole Lens

Gravitational lensing of a star field, dust motes, and the deep nebula behind a singularity. A Doppler-shifted accretion disk burns in the equatorial plane — bluer where it rushes toward you, redder where it falls away.

Neon Tubes

Flexible neon tubes float and bend through space, forming abstract loops. Each tube glows with its own colour and bloom.

Energy Core Reactor

A glowing reactor core suspended in space — rotating orbital rings, procedural plasma arcs lashing inward, and emissive bloom.

Lightning Storm

Branching procedural arcs jag across animated stormclouds. Each strike pulses a bright halo across the sky, dimming back into the dark in a few hundred ms.

Floating Dust in Spotlight

A dim cinematic room with a hard-edged spotlight cone. Thousands of dust motes drift through the beam and twinkle as they cross the light.
Live customizer

Lens Flare Machine

Transparent backgroundBG topBG bottomCore colourStreak colourGhost AGhost BIntensity1Streak length1Ghost count6Spin speed0.4Light track speed0.5How fast the light source crosses the frame when no cursor.Heading FontInteractivityWhich input drives the hero — try Scroll if you want the page to drive motion.
CrazyGL · crazygl.comProgrammable hero sections for real websites.