Massive title with horizontal slice glitches, RGB drift and faint scanlines — the classic broken-broadcast hero.
import GlitchTitle from '@crazygl/hero-glitch-title';
export default function Hero() {
return (
<GlitchTitle
heading="BROKEN BEAM"
subheading="transmission unstable"
rgbDrift={12}
sliceCount={5}
/>
);
}sliceCount (horizontal bands), burstHz (how often the glitch fires), rgbDrift (channel-split distance in px), scanlines toggle.textColor, redColor / cyanColor (the two ghost channels), subColor.fontSize, headingFontFamily, headingFontWeight.bgColor or transparentBackground.npm install @crazygl/hero-glitch-titleThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import GlitchTitle from '@crazygl/hero-glitch-title';
export default function Landing() {
return (
<GlitchTitle />
);
}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 GlitchTitle from '@crazygl/hero-glitch-title';
export default function Page() {
return (
<section>
<GlitchTitle
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}