Thick glossy paint strokes sweep across the hero in slow motion. Each stroke has its own colour and gloss highlight.
import PaintStrokes from '@crazygl/hero-paint-strokes';
export default function Hero() {
return (
<PaintStrokes
heading="In oil."
strokeCount={6}
gloss={1}
speed={0.4}
/>
);
}canvasColor (backdrop), strokeA / strokeB / strokeC (the three cycling tints), strokeCount (2–10), thickness, speed (sweep), gloss (wet highlight).contentType (heading / two-columns / custom) and headingFontFamily.npm install @crazygl/hero-paint-strokesThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import PaintStrokes from '@crazygl/hero-paint-strokes';
export default function Landing() {
return (
<PaintStrokes />
);
}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 PaintStrokes from '@crazygl/hero-paint-strokes';
export default function Page() {
return (
<section>
<PaintStrokes
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}