An image-driven particle field. Drop in a logo and the particles drift around then snap into its silhouette in waves. Cursor magnetically pulls or repels the swarm. Sample by alpha, luminosity, or transparency.
import MagneticLogo from '@crazygl/hero-magnetic-logo';
export default function Hero() {
return (
<MagneticLogo
logo="https://crazygl.com/samples/crazygl.svg"
heading="Your logo, alive."
sampleMode="alpha"
cursorForce={1}
/>
);
}npm install @crazygl/hero-magnetic-logoThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import MagneticLogoField from '@crazygl/hero-magnetic-logo';
export default function Landing() {
return (
<MagneticLogoField />
);
}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 MagneticLogoField from '@crazygl/hero-magnetic-logo';
export default function Page() {
return (
<section>
<MagneticLogoField
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}