Difference blend cursor
Also called: invert cursor
A white circle with a difference blend mode follows the mouse and inverts whatever is underneath: black text turns white, yellow turns blue. It stretches along the direction of movement, grows over headings and links and squeezes on click. It does nothing on mobile.

When to use it
For studio, type, fashion, gallery and agency sites with flat color bands and huge headings, where the inversion shows well. It works with any background color, but over photos the result is unpredictable, so test it. Remember the circle disappears on phones and tablets. Use data-alvos to choose what makes it grow and --cursor-inverso-cor for a tinted inversion. The effect must not sit inside elements with isolation or transform that block blending.
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="cursor-inverso">
<h2>Título grande</h2>
<a href="/contato">Contato</a>
</section>
More mouse effects
- Needle fieldcompass field
- Label cursorcontext cursor
- Gooey elastic cursormagnetic 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