ProUnlock everything for $49.99 a year, or $79.99 once. See plans ›

Nexus UI

Mesh Net, animated React component

A distorted triangle net that hides in the dark until the cursor comes near. Nodes are shoved outward on springs, overshoot a little as they settle, and the edges light up like a torch passing over them, then fade out again with distance.

  • Pro
  • Background Effects
  • Hover
  • Spring

Play with it

Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.

Props

PropTypeDefaultWhat it does
color"#5b4fe0"Colour of the lit edges, as a 6-digit hex.
background"#000000"Colour the canvas is cleared to.
gridSize64Spacing between nodes, in px.
distortion0.5Random offset of each node, as a fraction of the spacing (0 to 0.5).
revealRadius230Radius around the pointer where the net shows and reacts, in px.
push30How far nodes are shoved away from the pointer, in px.
autoplayfalseA ghost pointer drifts in a slow loop until a real pointer arrives. Pauses off screen and never runs under reduced motion.
className—Extra classes for the wrapper.
children—Content layered above the net.