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

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.

ReactWebGLInteractiveFont#black-hole#gravitational-lens#stars#accretion-disk#bloom#premium

Usage

import BlackHoleLens from '@crazygl/hero-black-hole-lens';

export default function Hero() {
	return (
		<BlackHoleLens
			heading="Event horizon."
			diskTilt={0.35}
			doppler={1}
			photonRing={1.4}
		/>
	);
}

Customise

  • Black holehorizonRadius, lensStrength, diskColor / diskHotColor, blue/red Doppler tints, doppler, diskWidth, diskBrightness, diskTilt, photonRing, rotationSpeed.
  • LayoutcenterX slides the black hole across the frame.
  • BackgroundbgColor and starDensity.
  • Content & typography — heading / subheading / two-column / custom content, plus heading font.

Best for

  • Space, astronomy, and astrophysics products
  • AI / research lab landing pages
  • Cinematic product launches and conference keynote sites
  • Any dark, premium hero that needs a single mesmerising focal point
01 · Install the package

One command, zero config.

npm install @crazygl/hero-black-hole-lens
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 BlackHoleLens from '@crazygl/hero-black-hole-lens';

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

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

Typographic Black Hole

A headline warped by a glowing gravitational center. The cursor moves the singularity — letters bend, chromatic-aberrate, and pour toward the event horizon while a starfield lenses behind it.

Lens Flare Machine

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

Starfield Warp

Deep parallax star field. The cursor bends space around it — stars near the pointer pull into curved trails toward the lens centre.

Neon Tubes

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

Package Galaxy

An infinite 3D galaxy of npm package stars clustered by ecosystem, with glowing comets streaking through the field. Seamless on every axis, fog-baked depth, soft nebula clouds in the deep background.

Energy Core Reactor

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

Black Hole Lens

Horizon radius0.12How big the dark sphere appears in the frame.Lens strength1.2Disk colourMid-temperature disk material — between the hot inner and the cool outer.Disk hot colourInner edge of the disk, just outside the horizon — hottest plasma.Blueshift tintColour the leading (approaching) edge of the disk shifts toward. Real physics: matter rotating toward the camera has its emission frequency-shifted up — toward bluer.Redshift tintColour the trailing (receding) edge of the disk shifts toward. Matter moving away has its emission shifted down — toward red.Doppler shift1How strongly the Doppler colour shift paints the disk's leading edge blue and trailing edge red. 0 = no shift (disk is a flat temperature ring); 1 = real-physics-ish.Disk width0.06Disk brightness1.6Disk tilt0.35How edge-on we view the disk. 0 = face-on (full circle); 1 = nearly edge-on.Photon ring1.4Thin bright halo right at the photon sphere. The signature feature of the Event Horizon Telescope image.Disk rotation0.5BackgroundStars1.2Heading FontInteractivityWhich input drives the hero — try Scroll if you want the page to drive motion.
CrazyGL · crazygl.comProgrammable hero sections for real websites.