vibran

Mouse particle trail

Also called: sparkle emitter

Stars, dots and confetti spray from the mouse, inherit the speed of the movement, fall gently, spin and fade. The faster the mouse, the more particles. On mobile, a tap releases a small burst.

Preview of Mouse particle trail running live
Copy the promptAdjust colors and speed

When to use it

For party, event, launch, invitation, kids store pages or a friendly 404, where a playful touch fits the brand. Use data-mistura="soma" on dark backgrounds (colors add up and glow) and "normal" on light ones. Pick a few brand colors in data-cores. Do not put it over long reading areas. With no mouse there is no trail; on mobile a tap releases a burst. Visitors who prefer reduced motion do not see the effect.

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="particulas-mouse" data-formas="estrela, ponto, confete" data-cores="#ffd23f, #ff7a45, #7be0ff" style="height:480px">
  <h2>Arraiá da Rua 7</h2>
</section>

More mouse effects

All 14 mouse effects →