Agencia RSE Image Zoom Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
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.
- Settings in Settings > Agencia RSE 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: put the class on the widget and the image stays inside it.
- Elementor: Advanced > CSS Classes >
lupa - WPBakery: Extra class name >
lupa
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.
Screenshots
No screenshots provided
