Heading that scrambles into glyph soup and resolves left-to-right into the target phrase — a hacker-decode reveal that rotates through several phrases.
import TextScrambler from '@crazygl/hero-textscrambler';
<TextScrambler
phrases={`DECODE THE FUTURE\nBUILD WHAT MATTERS`}
revealSpeed={22}
holdDuration={1800}
/>phrases (one per line, cycled in order), alphabet (the glyphs used for scrambling).holdDuration (ms the resolved phrase stays), revealSpeed (chars/second the decode advances).textColor (locked chars), scrambleColor (still-scrambling chars), fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-textscramblerThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TextScrambler from '@crazygl/hero-textscrambler';
export default function Landing() {
return (
<TextScrambler />
);
}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 TextScrambler from '@crazygl/hero-textscrambler';
export default function Page() {
return (
<section>
<TextScrambler
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}