Each character is clipped from below and rises into place on a stagger — like setting movable type one piece at a time. Plays once on load or loops with a configurable hold.
import ClipTypeStagger from '@crazygl/hero-clip-type-stagger';
export default function Hero() {
return (
<ClipTypeStagger
heading="set in motion"
trigger="loop"
stagger={50}
/>
);
}heading text.trigger (loop replays after a hold, or load one-shot), loopAfter hold seconds.perLetterDur (ms) and stagger (ms between letters).textColor, fontSize, headingFontFamily (Google font), headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-clip-type-staggerThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ClipTypeStagger from '@crazygl/hero-clip-type-stagger';
export default function Landing() {
return (
<ClipTypeStagger />
);
}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 ClipTypeStagger from '@crazygl/hero-clip-type-stagger';
export default function Page() {
return (
<section>
<ClipTypeStagger
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}