Slot machine with a 3D flip in X — the rotating word flips over a horizontal axis like a split-flap board.
import RotatingTextPro from '@crazygl/hero-rotating-text-pro';
export default function Page() {
return (
<RotatingTextPro
prefix="We are"
rotators={"designers.\nbuilders.\ndreamers."}
accentColor="#5b8def"
/>
);
}prefix, rotators (one word per line).holdMs (dwell on each word), flipMs (flip duration).textColor, accentColor (the rotating word), fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-rotating-text-proThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import RotatingTextPro from '@crazygl/hero-rotating-text-pro';
export default function Landing() {
return (
<RotatingTextPro />
);
}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 RotatingTextPro from '@crazygl/hero-rotating-text-pro';
export default function Page() {
return (
<section>
<RotatingTextPro
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}