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.

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
- 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:
<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
- Needle fieldcompass field
- Label cursorcontext cursor
- Gooey elastic cursormagnetic cursor
- Difference blend cursorinvert 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