A cinematic light source moves across the frame, throwing anamorphic streaks, hex aperture ghosts, glowing rings, and chromatic glares.
import LensFlare from '@crazygl/hero-lens-flare';
export default function Page() {
return (
<LensFlare
heading="Anamorphic."
intensity={1}
streakLength={1}
ghostCount={6}
/>
);
}contentType, heading, subheading, or custom nodes.transparent, bgTop / bgBottom.flareColor (core), streakColor, ghostColorA / ghostColorB, intensity, streakLength, ghostCount, spinSpeed (hex ghost rotation), trackSpeed (idle light path speed).headingFontFamily.npm install @crazygl/hero-lens-flareThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import LensFlareMachine from '@crazygl/hero-lens-flare';
export default function Landing() {
return (
<LensFlareMachine />
);
}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 LensFlareMachine from '@crazygl/hero-lens-flare';
export default function Page() {
return (
<section>
<LensFlareMachine
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}