vibran

Hover list preview

Also called: floating image on link hover

In a list of links, hovering a row dims the others and shows an image that follows the mouse and tilts with its speed. Moving to another row crossfades the image. From the keyboard, the preview appears next to the focused row.

Preview of Hover list preview running live
Copy the promptAdjust colors and speed

When to use it

For portfolio project indexes, blog tables of contents, episode lists, restaurant menus or any long list of links where an image helps choose without taking fixed space on the page. Give each item data-previa with the image URL (or a gradient) and, optionally, data-legenda. On phones and tablets only the list shows, so the text has to stand on its own. Use data-largura for bigger previews and data-inclinar="0" to remove the tilt.

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:

<ul data-efeito="lista-previa">
  <li data-previa="casa.jpg" data-legenda="Site · 2026"><a href="/casa">Casa Ipê</a></li>
  <li data-previa="linear-gradient(135deg,#ff7a45,#7a2e1d)"><a href="/cafe">Café Mantiqueira</a></li>
</ul>

More mouse effects

All 14 mouse effects →