A large number that counts from a start value up to an end value with configurable easing, decimals, prefix and suffix — the classic stats / numbers section, but as a full hero.
import DigitUp from '@crazygl/hero-digit-up';
export default function Hero() {
return (
<DigitUp
startValue={0}
endValue={42000}
duration={2.5}
suffix="+"
label="Active customers worldwide"
/>
);
}startValue, endValue, decimals, prefix, suffix (thousand separators added automatically).duration, delay, easing (linear / ease-out / ease-in-out), loopInterval (replay period; 0 = one-shot).label caption below the number (empty hides it).textColor, fontSize, letterSpacing, headingFontFamily, headingFontWeight.bgColor, accentColor / accentStrength (radial bloom), transparentBackground.npm install @crazygl/hero-digit-upThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import DigitUp from '@crazygl/hero-digit-up';
export default function Landing() {
return (
<DigitUp />
);
}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 DigitUp from '@crazygl/hero-digit-up';
export default function Page() {
return (
<section>
<DigitUp
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}