A wordmark assembled out of thousands of soft particles, each parked at a sampled pixel of the rasterised text. Move the cursor through it and the particles flee from your hand, then spring back to their target positions.
import TextFlow from '@crazygl/hero-text-flow';
<TextFlow
heading="Pola"
particleDensity={3}
particleSize={2}
mouseRadius={100}
/>;heading (the wordmark), optional subheading and ctaLabel / onCTAClick.particleSize, particleDensity (sampling step; every Nth pixel becomes a particle), particleColor, particleAlpha.mouseRadius, pushStrength, returnSpeed (spring-back), ambientJitter (idle drift that keeps it alive in a static preview).fontSize, letterSpacing, headingFontFamily, headingFontWeight (heavier weights give more lit pixels per glyph).transparentBackground, bgColor.npm install @crazygl/hero-text-flowThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TextFlow from '@crazygl/hero-text-flow';
export default function Landing() {
return (
<TextFlow />
);
}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 TextFlow from '@crazygl/hero-text-flow';
export default function Page() {
return (
<section>
<TextFlow
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}