A cycling wordmark that types itself out character by character, pauses, deletes, and rolls to the next word — with a blinking block cursor that glows softly against a layered atmospheric backdrop.
import TypewriterEffect from '@crazygl/hero-typewriter-effect';
export default function Hero() {
return (
<TypewriterEffect
words={['Hello', 'From', 'CrazyGL']}
subheading="Cycling display text that types itself out one character at a time."
ctaLabel="Get the source"
onCTAClick="/install"
/>
);
}words also accepts a \n-separated string (matching the customizer textarea). onCTAClick accepts a URL string or a function.
words, subheading, ctaLabel, onCTAClick.typingSpeed, deletingSpeed, pauseDuration, pauseAfterDelete (all ms).cursorColor, cursorWidth, cursorHeight (% of font), cursorBlinkSpeed, cursorGlow.textColor, fontSize, letterSpacing, headingFontFamily, headingFontWeight.transparentBackground, bgColor, glowColor, glowStrength, grainAmount, vignetteStrength.npm install @crazygl/hero-typewriter-effectThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TypewriterEffect from '@crazygl/hero-typewriter-effect';
export default function Landing() {
return (
<TypewriterEffect />
);
}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 TypewriterEffect from '@crazygl/hero-typewriter-effect';
export default function Page() {
return (
<section>
<TypewriterEffect
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}