vibran

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.

Preview of Difference blend cursor running live
Copy the promptAdjust colors and speed

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

  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="cursor-inverso">
  <h2>Título grande</h2>
  <a href="/contato">Contato</a>
</section>

More mouse effects

All 14 mouse effects →