跳到内容

OpenVault Image Zoom

v1.6.0

openvault · 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日
需要 WordPress 5.6+已测试到 7.2PHP 7.2+

贡献者

截图

Inner zoom: the image zooms in under the cursor and follows it, like the WooCommerce product zoom.
Inner zoom: the image zooms in under the cursor and follows it, like the WooCommerce product zoom.
Lens mode: a lens over the image and the zoomed area in a side panel.
Lens mode: a lens over the image and the zoomed area in a side panel.
Settings screen: selector, mode, cursor, zoom level, touch and WooCommerce options.
Settings screen: selector, mode, cursor, zoom level, touch and WooCommerce options.
Elementor: the Hover zoom switch on the Image widget. The block editor, WPBakery and Beaver Builder have the same switch.
Elementor: the Hover zoom switch on the Image widget. The block editor, WPBakery and Beaver Builder have the same switch.

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/contain and 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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums