Heading scrambled into random glyphs that resolve in a non-left-to-right order — characters lock in scattered across the word.
import ScramblyText from '@crazygl/hero-scrambly-text';
export default function Hero() {
return (
<ScramblyText
phrases={`STAY WEIRD\nMAKE IT REAL\nSHIP IT`}
scrambleColor="#5b8def"
/>
);
}phrases (one phrase per line, cycled) and alphabet (the pool of glyphs used while scrambling).holdMs (how long a resolved phrase holds), scrambleMs (resolve duration), perCharShuffle (glyph re-rolls per second).textColor (locked letters), scrambleColor (mid-scramble letters), fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-scrambly-textThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ScramblyText from '@crazygl/hero-scrambly-text';
export default function Landing() {
return (
<ScramblyText />
);
}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 ScramblyText from '@crazygl/hero-scrambly-text';
export default function Page() {
return (
<section>
<ScramblyText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}