Heading sits calm until you hover, then snaps into an RGB-split glitch. Stops cleanly on leave — restraint with a payoff.
import TextGlitchHover from '@crazygl/hero-text-glitch-hover';
export default function Hero() {
return (
<TextGlitchHover
heading="hover to glitch"
amplitude={8}
redColor="#ff3a55"
cyanColor="#3affff"
/>
);
}heading text.amplitude (px the colour layers jitter on hover).textColor (base), redColor, cyanColor, plus fontSize, headingFontFamily, headingFontWeight.transparentBackground toggle and bgColor.npm install @crazygl/hero-text-glitch-hoverThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TextGlitchHover from '@crazygl/hero-text-glitch-hover';
export default function Landing() {
return (
<TextGlitchHover />
);
}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 TextGlitchHover from '@crazygl/hero-text-glitch-hover';
export default function Page() {
return (
<section>
<TextGlitchHover
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}