<img data-src="https://cdn-images-1.medium.com/max/2600/0*HICLyAdNSIyT0ODU.jpg" alt="Zoom Image" class="image lazyload image-zoom ">
{{> @image modifier="image-zoom" }}
{
"url": "https://cdn-images-1.medium.com/max/2600/0*HICLyAdNSIyT0ODU.jpg",
"alt": "Zoom Image"
}
/*
* Element: Image Zoom
*/
.image-zoom {
width: 100%;
max-height: 100%;
}
.image-zoom-overlay {
z-index: 233;
background: #fff;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
filter: 'alpha(opacity=0)';
opacity: 0;
-webkit-transition: opacity 300ms;
-o-transition: opacity 300ms;
transition: opacity 300ms;
}
.image-zoom-overlay.show {
opacity: 0.97;
}
'use strict';
var novicell = novicell || {};
var Imagezoom = Imagezoom || {};
novicell.imageZoom =
novicell.imageZoom ||
new function () {
this.init = () => {
var image = document.querySelector('.image-zoom');
if (image) {
var zoom = new Imagezoom(image).overlay();
image.addEventListener('click', function (e) {
// stop propagation if we want to retain our HTML api
// in other parts of the site.
e.stopPropagation();
zoom.show();
});
}
};
}();
/*
* Element: Image
*/
.image {
width: 100%;
}
There are no notes for this item.