A heading that flickers character by character like a broken neon sign, an LED panel, a retro CRT or an electric arc — with three patterns and four style presets.
import FlickerText from '@crazygl/hero-flicker-text';
export default function Hero() {
return (
<FlickerText
heading="MOTION GRAPHICS"
flickerStyle="neon"
glowColor="#00ffff"
glowIntensity={12}
/>
);
}Note: the style preset prop is
flickerStyle(notstyle— that name is reserved by React for DOM styles).
flickerStyle (neon / led / retro / electric), pattern (sequential / random / sync), mode (continuous / transition), transitionDuration, loopAnimation + loopInterval, speed, glowIntensity.textColor, glowColor.fontSize, letterSpacing, headingFontFamily, headingFontWeight.bgColor or transparentBackground to sit over an existing background.npm install @crazygl/hero-flicker-textThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import FlickerText from '@crazygl/hero-flicker-text';
export default function Landing() {
return (
<FlickerText />
);
}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 FlickerText from '@crazygl/hero-flicker-text';
export default function Page() {
return (
<section>
<FlickerText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}