Copy-paste a Liquid snippet for product page - Hover-to-magnify lens over a product image - the #1 action shoppers take on a product page.
1<gpl-zoom class="gpl-zoom" data-zoom="2">2 {%- if image -%}3 {{ image | image_url: width: 1200 | image_tag: class: 'gpl-zoom__img', loading: 'eager' }}4 {%- else -%}5 {{ product.featured_image | image_url: width: 1200 | image_tag: class: 'gpl-zoom__img', loading: 'eager' }}6 {%- endif -%}7 <span class="gpl-zoom__hint" aria-hidden="true">Hover to zoom</span>8</gpl-zoom>
Full source is for members
One payment - every snippet, guide and bundle