
OpenVault Image Zoom
v1.6.0openvault · 2026年11月17日 上架
WooCommerce-style hover zoom for any image in any theme. Add the lupa class and the image zooms in under the cursor.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 174
- 最近更新
- 2026年11月26日
贡献者
截图




Add the lupa CSS class and, on hover, the image zooms in on the area under the
cursor and follows it across the image. It is the same behaviour as the
WooCommerce product zoom, without depending on WooCommerce or on the theme.
- The class works on the
<img>itself or on any block that wraps it: an
Elementor widget, a WPBakery element, a figure, a link… - It also works on elements whose image is a CSS
background-image. - It respects
object-fit: cover/containand the fixed-ratio boxes that page
builders create: it zooms into exactly the crop you see. - No jQuery and no external libraries (about 7 KB gzipped).
- Two modes: inner zoom (default) or lens with a side panel.
- Automatic zoom level based on the real resolution of the original file.
- Works with lazy loading (it waits for the placeholder to be replaced).
- Works with content loaded by AJAX, sliders and Elementor (MutationObserver).
- Optional on touch screens: press and drag.
- “Hover zoom” switch on the image widgets of Elementor (Image and the v4 atomic Image), the block editor (Image block), WPBakery (Single Image) and Beaver Builder (Photo).
- Use any class or selector, not only
lupa: set it in the settings, for example.lupa, .zoom. - Settings in Settings > OpenVault Image Zoom.
“Lupa” is Spanish for magnifying glass.
Usage
HTML:
<img src="photo-800.jpg" data-lupa-src="photo-2000.jpg" class="lupa" alt="" />
Page builders: turn on the Hover zoom switch of the image widget.
- Elementor: Image widget (Content > Hover zoom) and the v4 atomic Image.
- Block editor: Image block, Hover zoom panel in the sidebar.
- WPBakery: Single Image, Hover zoom checkbox.
- Beaver Builder: Photo module, Hover zoom.
Any other builder or widget: put the class (lupa by default) in its CSS class field. The image stays inside the widget.
Shortcode:
[agrse_zoom id="123"]
[agrse_zoom src="photo.jpg" large="photo-full.jpg" zoom="3" mode="lens"]
Per-image attributes: data-lupa-src, data-agencia-rse-image-zoom, data-lupa-mode,
data-lupa-lens.
JavaScript API: AgrseZoom.refresh(), AgrseZoom.destroyAll() and the
lupa:refresh event (document.dispatchEvent(new CustomEvent('lupa:refresh'))).
PHP filters: agrse_zoom_should_enqueue, agrse_zoom_config.
The plugin makes no external requests and stores no visitor data.