A nav bar where each link reveals a coloured fill on hover — left-to-right wipe behind a flat-coloured label.
import DynamicFillNav from '@crazygl/hero-dynamic-fill-nav';
export default function Hero() {
return (
<DynamicFillNav
items={`Work | /work\nProcess | /process\nContact | /contact`}
fillColor="#5b8def"
/>
);
}items: one label | href pair per line.textColor, fillColor (wipe colour), fillTextColor (hover text), fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-dynamic-fill-navThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import DynamicFillNav from '@crazygl/hero-dynamic-fill-nav';
export default function Landing() {
return (
<DynamicFillNav />
);
}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 DynamicFillNav from '@crazygl/hero-dynamic-fill-nav';
export default function Page() {
return (
<section>
<DynamicFillNav
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}