A hybrid: letters first scramble into random glyphs, then physically shuffle position, then settle into their target — two effects in one timeline.
import ScrambleShuffleText from '@crazygl/hero-scrambleshuffle-text';
export default function Page() {
return (
<ScrambleShuffleText
phrase="CRAZYGL"
scrambleColor="#ff5c8a"
textColor="#ffffff"
loop
/>
);
}phrase and the alphabet of glyphs cycled during the scramble.loop (replay vs. hold the final phrase) and shuffle (skip the position-shuffle phase and lock straight from scramble).scrambleMs, shuffleMs, holdMs for each phase.textColor, scrambleColor, fontSize, headingFontFamily, headingFontWeight.transparentBackground and bgColor.npm install @crazygl/hero-scrambleshuffle-textThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ScrambleShuffleText from '@crazygl/hero-scrambleshuffle-text';
export default function Landing() {
return (
<ScrambleShuffleText />
);
}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 ScrambleShuffleText from '@crazygl/hero-scrambleshuffle-text';
export default function Page() {
return (
<section>
<ScrambleShuffleText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}