vibran

Image trail

Portuguese name: Rastro de imagens

An image trail. As you move the mouse, cards appear along its path, slightly rotated, and fade away soon after.

Preview of Image trail running live
Copy the promptAdjust colors and speed

When to use it

Good for photographer portfolios, studios, fashion brands, galleries, where flashing many images quickly is fun. Without a mouse nothing happens, so the photos need another way to show on phones. Raise data-distancia for fewer cards and data-tempo to keep them on screen longer.

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="rastro" data-distancia="80">
  <template>
    <img src="foto1.jpg" alt="">
    <img src="foto2.jpg" alt="">
  </template>
  <h2>Mexa o mouse aqui</h2>
</div>

More mouse effects

All 14 mouse effects →