vibran

Needle field

Also called: compass field

A grid of tiny needles, like iron filings around a magnet: they all turn to point at the mouse, and the closest ones thicken and change color. On a phone they follow your finger; when nobody is touching, an invisible point wanders around and pulls the field.

Preview of Needle field running live
Copy the promptAdjust colors and speed

When to use it

A hero background for science, maps, navigation, geology, precision tools, or any brand that talks about direction and attraction. The text sits on top of the needles, so keep the contrast up: needles close to the background color and a strong highlight only near the mouse.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<section data-efeito="agulhas-campo" data-espaco="28" style="--agulhas-cor:#4d8a83; --agulhas-destaque:#ffa24d">
  <h1>Título da seção</h1>
</section>

More mouse effects

All 14 mouse effects →