108

Particle Network

Floating particles link up when close, and the cursor attracts them

BackgroundIdle loopHover & clickBackground decorHeadline & heroCanvasCanvas 2D

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

Dozens of small particles drift slowly at random in the background, bouncing off the edges; when two particles are close enough a line connects them, clearer when closer and fainter when farther. When the cursor moves in, nearby particles are gently pulled toward it and link to it, like a constellation network. The foreground headline stays clear. (Canvas 2D: update positions every requestAnimationFrame, compute pairwise distances to draw lines with opacity based on distance; size the canvas for devicePixelRatio)

When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.

How to use it

  1. Tap “Copy AI prompt”.
  2. Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
  3. The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.

More background effects

346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts

Browse all effects →