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

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.

ReactWebGLInteractiveFont#typography#black-hole#gravitational-lens#ai#cybersecurity#futuristic

Usage

import TypographicBlackHole from '@crazygl/hero-typographic-black-hole';

export default function Hero() {
  return (
    <TypographicBlackHole
      heading="EVENT HORIZON"
      gravityStrength={1}
      swirl={0.95}
      coreColor="#ffd680"
    />
  );
}

Customise

  • Contentheading (warped on the canvas), subheading, ctaLabel, onCTAClick.
  • Black holegravityStrength, gravityRadius, eventHorizon, swirl, chromaticAberration.
  • Core glowcoreColor, haloColor, coreBrightness.
  • TexttextColor, textGlow.
  • StarfieldstarDensity, starBrightness.
  • PointerpointerInfluence, driftSpeed. TypographyheadingFontFamily, headingFontWeight, letterSpacing. BackgroundbgColor.

Notable controls

  • Gravity strength (gravityStrength, 0–2) — how hard the lens pulls. Around 0.8–1.3 reads as a physical bend; past 1.5 it turns deliberately exaggerated.
  • Accretion swirl (swirl, 0–2.5) — how much the headline winds tangentially as it falls in. The default 0.95 shows a clear orbiting arc; near 0.65 keeps the word most readable; above 1.5 winds it into a vortex.
  • Chromatic aberration (chromaticAberration, 0–1) — the per-channel color split near the core. Sweet spot is 0.3–0.7; above 0.8 it reads as overtly fake.
  • Event horizon (eventHorizon, 0–0.3) — radius of the black sphere that swallows text entirely. Push above 0.12 for a heavier, blacker singularity.
  • Pointer influence (pointerInfluence, 0–1) — drop to 0 for a static centered subject that drifts on its own; raise toward 1 for full cursor follow.
01 · Install the package

One command, zero config.

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

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

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

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.

Typographic Fluid Simulation

A bold headline acts as a mask for a real-time colorful fluid. Domain-warped FBM noise advected over time + a pointer-driven velocity grid swirl two color fields inside the type while the background stays minimal. Move the cursor to inject velocity and color into the letters.

Typography In Portal

Your headline rendered inside a glowing circular portal — text drifts across the opening, the rim glows and ripples with noise, and the pointer bends the portal in real time. Built as a single fullscreen WebGL shader that samples a canvas-rendered text texture with chromatic aberration.

AI Console Portal

A glowing torus portal opens onto an AI console screenshot stepping forward into the scene, surrounded by orbiting prompt and output cards and a stream of particles slipping past the ring toward the camera.

Screenshot as Hologram Projection

Your screenshot projected from a small device as a translucent holographic panel floating in the air. Wide cyan projection cone, moving scanlines, subtle flicker, drifting dust. Built for AI, dev tools, cybersecurity, and futuristic SaaS.

Typographic 3D Transformer

A single extruded 3D word sits in the centre of the stage with a glassy candy finish under a RoomEnvironment studio. Move the cursor horizontally and the whole word rotates to face you; move vertically and each letter individually leans toward the cursor — closer letters bend more.
Live customizer

Typographic Black Hole

Gravity strength0Overall warp intensity. 0 = no lens; ~1 = physical-looking bend; >1.5 reads as exaggerated.Gravity radius0.1How far the warp reaches from the center. Larger = whole headline bends; smaller = local kink.Event horizon0.04Radius of the black sphere at the center where text disappears entirely.Accretion swirl0.95How hard matter spirals tangentially as it falls in. 0 = pure radial pinch; ~0.65 = readable headline with a clear accretion arc; >1.5 winds it into a vortex.Chromatic aberration0.54Strength of the per-channel split. Sweet spot 0.3–0.7.Core colourHot inner colour of the singularity glow.Halo colourOuter halo colour blending into the dark.Core brightness1.5Text colourText glow0.5Soft additive glow around the warped letters.Star density0.5Star brightness0.7Pointer influence1How strongly the singularity tracks the cursor. 0 = locked centre, 1 = full follow.Idle drift0.5Speed of the slow Lissajous drift when no cursor is present. Disabled under reduced-motion.BackgroundHeading fontWide futuristic sans recommended: Orbitron, Audiowide, Exo 2, Space Grotesk. Rasterized in the selected face.Heading weight800Letter spacing0.05emEm-relative tracking baked into the canvas texture.InteractivityWhich input drives the hero — try Scroll if you want the page to drive motion.
CrazyGL · crazygl.comProgrammable hero sections for real websites.