Each letter cycles through a hue palette on a phase offset — moving colour without a moving gradient. Pick from eight curated palettes spanning soft pastels to electric neon.
import ColorfulTypeMotion from '@crazygl/hero-colorful-typemotion';
export default function Hero() {
return (
<ColorfulTypeMotion
heading="colour in motion"
palette="neon"
speed={0.8}
/>
);
}heading.palette: one of pastel, rainbow, neon, candy, sunset, ocean, forest, mono.speed (cycle rate), phaseStep (per-letter hue offset in degrees).fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-colorful-typemotionThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ColorfulTypeMotion from '@crazygl/hero-colorful-typemotion';
export default function Landing() {
return (
<ColorfulTypeMotion />
);
}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 ColorfulTypeMotion from '@crazygl/hero-colorful-typemotion';
export default function Page() {
return (
<section>
<ColorfulTypeMotion
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}