Particle Network
An interactive particle-web background whose particles drift and link to each other, and whose lines reach out to the cursor — with a tether-and-relay system that keeps the cursor plugged into the web at any distance. WebGL-accelerated with a 2D canvas fallback, works through content layered on top, and follows your text color via currentColor.
Particle network
A web that reaches for your cursor.
Particles drift and link into a living network. Move your cursor and lines tether out to it, relaying through neighbours — even from across the screen. WebGL-accelerated, with a 2D fallback.
Cursor tetherWebGLcurrentColor aware
Installation
- 1
Install the component:
- 2
Usage:
jsxapp/page.jsx
import ParticleNetwork from "@/components/ui/particle-network";// ── 1) EASIEST: wrap your content — particles render behind it automatically<ParticleNetwork className="min-h-screen bg-white text-slate-700 dark:bg-slate-950 dark:text-white/70"> <Hero /></ParticleNetwork>// ── 2) As a backdrop inside any "relative" parent — nothing else to configure.// Keep your content above it with "relative z-10". The canvas ignores// pointer events, so links and buttons keep working.<section className="relative min-h-screen bg-slate-950 text-sky-300"> <ParticleNetwork /> <div className="relative z-10">...your content...</div></section>// ── 3) Fixed full-page background behind the entire site.// position="fixed" pins it; "-z-10" keeps it behind your layout.<ParticleNetwork position="fixed" className="-z-10" />// ── 4) Match your brand: colours follow the element's text colour by// default (currentColor), or pass any CSS colour / palette.<ParticleNetwork color={["#FF7138", "#1c1c1e"]} cursorColor="#FF7138" glow />// ── 5) Programmatic control via ref:// ref.current.pause() · resume() · refresh() · burst(x?, y?)