Heading where each letter cross-fades and morphs through the next phrase — letters that match stay, letters that don't blur-swap.
import LetterMorph from '@crazygl/hero-lettermorph';
export default function Hero() {
return (
<LetterMorph
phrases={`STORY\nSPACE\nSOUND\nSHAPE`}
holdDuration={1500}
morphDuration={700}
/>
);
}phrases (one per line; the heading cycles through them).holdDuration, morphDuration, perLetterStagger, blurAmount.textColor, fontSize, headingFontFamily (Google font), headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-lettermorphThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import LetterMorph from '@crazygl/hero-lettermorph';
export default function Landing() {
return (
<LetterMorph />
);
}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 LetterMorph from '@crazygl/hero-lettermorph';
export default function Page() {
return (
<section>
<LetterMorph
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}