Hero Beams
A WebGL shader that grows soft pink and blue beams of light from the top edge, pulses them in and out on staggered cycles and adds a little film grain. Built for light backgrounds.
Installation
Copy the install prompt
Paste it into Claude Code, Cursor or any coding agent inside your project. It includes the steps, a usage example and the full source.
Usage
import { HeroBeams } from "./components/HeroBeams";
export function Hero() {
return (
<section style={{ position: "relative", minHeight: "100vh", overflow: "hidden" }}>
{/* The canvas fills its parent, so give the parent a size and position */}
<div style={{ position: "absolute", inset: "0 0 auto 0", height: "min(620px, 80vh)" }}>
<HeroBeams count={17} colorA="#4f8bff" colorB="#5cecff" colorC="#ff5c8d" />
</div>
<h1 style={{ position: "relative" }}>Soft light, falling gently</h1>
</section>
);
}