Words start scattered across the canvas at random positions and angles, then converge into a single readable sentence — chaos resolving into order.
import ScatteredSentence from '@crazygl/hero-scattered-sentence';
export default function Hero() {
return (
<ScatteredSentence
sentence="every word eventually finds its place"
convergeMs={1800}
/>
);
}sentence.loop, convergeMs, holdMs, scatterMs, scatterRadius.textColor, fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-scattered-sentenceThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ScatteredSentence from '@crazygl/hero-scattered-sentence';
export default function Landing() {
return (
<ScatteredSentence />
);
}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 ScatteredSentence from '@crazygl/hero-scattered-sentence';
export default function Page() {
return (
<section>
<ScatteredSentence
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}