vibran

Chromatic aberration image hover, RGB split on mouse move

Portuguese name: Imagem com aberração de cor

Chromatic aberration image: moving the pointer over the photo splits the red and blue channels along the movement, like a cheap lens. The faster the pointer, the bigger the split; when still, the image returns to normal.

Preview of Chromatic aberration image hover, RGB split on mouse move running live
Copy the promptAdjust colors and speed

When to use it

Portfolio covers, event banners and brand pages with a glitchy video look. It uses an SVG filter: no canvas needed and the image remains a regular img. Tune data-forca and data-retorno.

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:

<div data-efeito="imagem-aberracao" style="aspect-ratio:16/10"><img src="foto.webp" alt="Descrição da foto"></div>

More mouse effects

All 14 mouse effects →