A paragraph that resolves word-by-word as the viewer scrolls, with a choice of six animation styles — blur, slide-up, scale, rotate, wave, or glow — and a colour transition from an initial muted hue to the final readable colour.
import UnblurTextReveal from '@crazygl/hero-unblur-text-reveal';
export default function Page() {
return (
<UnblurTextReveal
text={'Clarity is a feature. We sweat the words so your users never have to.'}
animationStyle="blur"
initialColor="#5b6480"
revealedColor="#ffffff"
scrollStart={15}
scrollEnd={70}
/>
);
}
onCTAClickaccepts either a URL string or a function callback when used in React.
text, ctaLabel, onCTAClick (url string or function).animationStyle (blur / slideUp / scale / rotate / wave / glow), direction (forward / reverse), blurAmount, speedPreset (slow / natural / fast), fadeDelay.scrollStart, scrollEnd, autoplaySeconds.initialColor, revealedColor, glowColor.textAlign, fontSize, lineHeight, letterSpacing, maxWidth, headingFontFamily, headingFontWeight.transparentBackground, bgColor, vignetteStrength.npm install @crazygl/hero-unblur-text-revealThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import UnblurTextReveal from '@crazygl/hero-unblur-text-reveal';
export default function Landing() {
return (
<UnblurTextReveal />
);
}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 UnblurTextReveal from '@crazygl/hero-unblur-text-reveal';
export default function Page() {
return (
<section>
<UnblurTextReveal
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}