Headline that fills bottom-up with a progress colour — like a loading bar disguised as type. The fill loops 0 → 100% on a configurable cycle.
import TextFill from '@crazygl/hero-textfill';
export default function Hero() {
return (
<TextFill
heading="LOADING"
cycleSec={3.4}
fillColor="#5b8def"
/>
);
}heading.cycleSec (fill duration), holdAtFullSec, loopAnimation (loop forever vs fill once and hold).outlineColor, fillColor, plus fontSize, strokeWidth, headingFontFamily, headingFontWeight.transparentBackground or a solid bgColor.npm install @crazygl/hero-textfillThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TextFill from '@crazygl/hero-textfill';
export default function Landing() {
return (
<TextFill />
);
}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 TextFill from '@crazygl/hero-textfill';
export default function Page() {
return (
<section>
<TextFill
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}