A bold grotesk headline is split into horizontal slices that fly in from alternating sides, settle into alignment, and then parallax against the pointer at different depths.
import KineticSplitTypography from '@crazygl/hero-kinetic-split-typography';
export default function Page() {
return (
<KineticSplitTypography
heading="FUTURES IN MOTION"
sliceCount={10}
ctaLabel="View the work"
onCTAClick="/work"
/>
);
}onCTAClick takes either a URL string or a function (e) => void under the same prop; leave it empty for a non-navigating button, or drop ctaLabel to hide the button.
heading (the sliced word), subheading, ctaLabel, onCTAClick.sliceCount, sliceMaxOffset (settled stagger), headingY (vertical position).loadStagger, loadDuration (slide-in timing).pointerParallax, depthRange (front/back stratification).textColor, bgColor, transparentBackground, headingFontFamily, headingFontWeight.npm install @crazygl/hero-kinetic-split-typographyThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import KineticSplitTypography from '@crazygl/hero-kinetic-split-typography';
export default function Landing() {
return (
<KineticSplitTypography />
);
}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 KineticSplitTypography from '@crazygl/hero-kinetic-split-typography';
export default function Page() {
return (
<section>
<KineticSplitTypography
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}