Stacked lines where each word is timed independently — bounce in, rotate, scale, on a choreographed sequence. Pick whether the show plays on load, follows scroll, or loops forever.
import KineticText from '@crazygl/hero-kinetic-text';
export default function Hero() {
return (
<KineticText
lines={`MOVE\nTHINGS\nFORWARD`}
trigger="reveal"
accentColor="#ff5c8a"
/>
);
}lines (one line per row; the second line takes the accent colour).trigger (loop, load, or reveal scroll-driven), loopAfter hold.perWordMs, stagger.scrollStart / scrollEnd (% progress mapping the reveal).textColor, accentColor, fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-kinetic-textThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import KineticText from '@crazygl/hero-kinetic-text';
export default function Landing() {
return (
<KineticText />
);
}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 KineticText from '@crazygl/hero-kinetic-text';
export default function Page() {
return (
<section>
<KineticText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}