Each letter rotates independently with offset phase. Trigger the rotation as a one-shot entrance on load, or let it spin forever.
import RotateTextFx from '@crazygl/hero-rotatetextfx';
export default function Hero() {
return (
<RotateTextFx
heading="ROTATION"
trigger="loop"
speed={0.5}
phaseOffset={0.4}
/>
);
}trigger: loop (continuous spin) or load (one-shot entrance).speed (loop rate), phaseOffset (per-letter lag), revealDurationMs (entrance length in load mode).textColor, fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-rotatetextfxThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import RotateTextFX from '@crazygl/hero-rotatetextfx';
export default function Landing() {
return (
<RotateTextFX />
);
}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 RotateTextFX from '@crazygl/hero-rotatetextfx';
export default function Page() {
return (
<section>
<RotateTextFX
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}