Functioning
This library works with image and picture elements.
-
The
altattribute will be transferred to the zoomed image. If not, an emptyaltwill be placed. -
The
srcattribute will generate the zoomed image. When using apictureelement, the library will utilize thecurrentSrc. -
Within your markup, you have the option to include a
data-zoomable-hdattribute 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.