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.

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
- 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.
- Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
- 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
- Label cursorcontext cursor
- Gooey elastic cursormagnetic cursor
- Difference blend cursorinvert cursor
- Click sparkFaísca no clique
- Ribbon trailcursor ribbon
- Chromatic aberration image hover, RGB split on mouse moveImagem com aberração de cor
- Venetian blind image hover, slat image effectImagem persiana
- Reveal lensx-ray window