Functioning
This library works with image
and picture
elements.
-
The
alt
attribute will be transferred to the zoomed image. If not, an emptyalt
will be placed. -
The
src
attribute will generate the zoomed image. When using apicture
element, the library will utilize thecurrentSrc
. -
Within your markup, you have the option to include a
data-zoomable-hd
attribute with an alternative imagesrc
. This image will replace the original imagesrc
. This is useful when you want to show a better quality image in the zoomed one.