
Dotted Grid Background
Backgrounds
A full-screen interactive particle section where dots on a fixed grid light up only within a spotlight around the cursor, and web lines connect the cursor to every nearby dot.
Spider Particles turns the cursor into a torch over a hidden grid: the particles stay still, appear only inside a spotlight around the pointer (largest at its centre, shrinking towards the edge), and thin web lines run from a centre point at the cursor to each particle within reach. When the pointer leaves, everything fades back to black.
Use it as a standalone interactive section for technical brand moments and experiments. The component renders its own full-screen black section with a "Spider Web" heading, a tagline, a Tracking/Idle indicator, a stats HUD and a cursor position readout, all hard-coded; it takes no children, so your own copy cannot be layered into it without editing the source.
The risk in production is that the effect is invisible until someone moves a mouse over it: with no pointer, visitors see a black section with the built-in heading. The section also hides the native cursor on desktop. With reduced motion the web keeps running but follows the cursor more slowly and reaches 40% less far, and below 1025px the field ignores pointer and touch input and shows an "Open on desktop" notice.
import SpiderParticles from '@/components/effects/spider-particles' const spiderParticlesProps = { particleCount:180, gridGap:0, particleSize:20.0, mouseConnectDist:160, spotlightRadius:300, particlesGlow:false, glowColor:0xffffff, particleColor:0xffffff, webColor:0xffffff, centerColor:0xffffff,} const page = () => { return ( <div> <SpiderParticles {...spiderParticlesProps} /> </div> )} export default pageA network monitoring SaaS can use Spider Particles as an interactive section on its homepage, retitled in the source. As the visitor moves the cursor, a pool of light reveals a grid of nodes and lines reach out from the pointer to each one in range, which suggests a live network without showing a literal diagram.
The outcome is quiet, visitor-driven motion. The section feels technical, while the product claim and signup CTA live in ordinary sections around it. The render loop already pauses offscreen; there is no static fallback, so touch and tablet visitors see the "Open on desktop" notice instead.
Not as a background behind your own copy (it takes no children), not for mobile-first pages, and not for pages already carrying heavy video/WebGL cost.
Particle count is set by particleCount (180 by default) or, when gridGap is above zero, by how many grid cells fit the section, so a small gridGap can create thousands of points. The render loop pauses offscreen and when the tab is hidden, and the cursor position readout re-renders the component on every mouse move.
The canvas has no role or label, and the built-in heading, tagline and HUD are real text that screen readers will announce. The section hides the native cursor on desktop. Below 1025px pointer and touch input are ignored, so the particles never appear and an "Open on desktop" notice is shown.
| Prop | Type | Default | Description |
|---|---|---|---|
particleCount | number | 180 | Controls how many particles are drawn. |
gridGap | number | 0 | Switches to a spaced lattice when above zero. |
particleSize | number | 20 | Makes each dot larger or smaller. |
mouseConnectDist | number | 160 | Sets the web connection radius around the cursor. |
spotlightRadius | number | 300 | Controls the cursor spotlight falloff. |
particleColor | color | #ffffff | Colors the particles. |
webColor | color | #ffffff | Colors the cursor connection lines. Needs Show Web on. |
centerColor | color | #ffffff | Colors the cursor center point. |
showWeb | boolean | true | Turns the connection lines on or off. |
particlesGlow | boolean | false | Enables glow rendering for particles and cursor points. |
glowColor | color | #ffffff | Glow color used when particle glow is enabled. Needs Particles Glow on. |
Use it when a desktop page benefits from a self-contained interactive section where the cursor reveals a particle grid and casts web lines to nearby points.
No. The shipped component renders with a Three.js WebGLRenderer and custom shader materials, so it needs WebGL.
Not through props: it takes no children, and the "Spider Web" heading, tagline, stats HUD and "Move your cursor to explore" prompt are hard-coded. Edit or remove them in the source, and use the colour, size, radius and glow props to tune the field itself.
Yes. Its render loop already pauses when the section is offscreen and when the tab is hidden.
There is no separate mobile version. Below 1025px the field ignores pointer and touch input, so the web never appears, and an "Open on desktop" notice is shown instead.
Need a custom effect? Tell us what to create.