vibran

Hover zoom pan

Also called: follow-cursor image zoom

The photo grows inside its frame when the mouse enters and smoothly follows the pointer, showing every corner up close. On mobile, a tap zooms in and dragging a finger pans around the photo.

Preview of Hover zoom pan running live
Copy the promptAdjust colors and speed

When to use it

For store galleries, product pages, architecture or photography portfolios, where the customer wants to inspect detail without opening another window. Unlike the lens, the whole photo moves inside the frame, so it works well in grids. Use photos large enough for the zoom (the frame is often 600 px wide; at 2.5x the photo needs about 1500 px). The frame needs a height or aspect-ratio. It also works from the keyboard: Enter toggles, arrows pan, Esc exits.

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:

<figure data-efeito="zoom-seguidor" data-zoom="2.4" style="aspect-ratio:4/3">
  <img src="foto.jpg" alt="Descrição da foto">
</figure>

More images effects

All 11 images effects →