Deep parallax star field. The cursor bends space around it — stars near the pointer pull into curved trails toward the lens centre.
import StarfieldWarp from '@crazygl/hero-starfield-warp';
export default function Hero() {
return (
<StarfieldWarp
heading="Bent space."
lensStrength={1.2}
trailLength={0.7}
/>
);
}contentType (heading / two-columns / custom) with heading, subheading, column1, column2 or a custom content node.transparent, bgTop, bgBottom, nebulaColor (faint cosmic dust behind the stars).starColor, starDensity, starSize, driftSpeed (slow ambient flow).lensStrength (how hard the cursor warps space), lensRadius (falloff zone), trailLength (how far stars streak inward).npm install @crazygl/hero-starfield-warpThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import StarfieldWarp from '@crazygl/hero-starfield-warp';
export default function Landing() {
return (
<StarfieldWarp />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import StarfieldWarp from '@crazygl/hero-starfield-warp';
export default function Page() {
return (
<section>
<StarfieldWarp
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}