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.

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
- 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:
<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
- Image comparison sliderAntes e depois
- Filterable galleryFLIP grid
- Mouse parallaxdepth layers / 2.5D image
- Halftone imagedot matrix photo reveal
- Liquid image distortionWebGL hover ripple
- Pixel revealImagem que se forma em pixels
- Ken Burns slideshow with captionsphoto story
- Image lensmagnifier