Hero Section With Black Hole

Pro

A split hero over a live Schwarzschild ray marcher. The accretion disc, the halo, and the thin ring hugging the shadow are the same gas seen through bent light, with copy parked on a scrimmed quiet half, and the render inverts to graphite on paper in light mode.

When to use Hero Section With Black Hole

Use this when the first screen has to look like a simulation, not a photograph. A WebGL ray marcher walks each pixel through curved space so the halo, the thin ring, and the disc are the same gas seen through bent light. That is expensive: the shader compiles before anything paints, a mid range phone pays for every step, and software renderers drop to a cheap still. Keep the section surface behind the canvas so a failed context does not flash.

Skip it when the claim has to be readable in the first second. The hole sits off centre so copy can live on the other half, and a scrim veils only that edge. The surface follows the theme: on light it renders the negative, so the sky is paper and the gas prints as graphite. Replace the headline before this goes to production.

Block details

Renders
WebGL canvas. Compiles a shader before the first frame
Theme
Follows the site theme in light and dark
Responsive
Mobile, tablet and desktop breakpoints are already set
Dependencies
clsxtailwind-merge
Source
1,369 lines, 49 KB in one file
Install
wensity add hero-section-with-black-hole --type block
Stack
React, Next.js, TypeScript and Tailwind CSS v4
Licence
Included with Wensity Pro. The CLI copies the file into your repository and you own it from there
Tags
webgl, shader, space, disc, split, adaptive
Last updated

More hero sections