<img data-src="https://www.novicell.dk/media/61609/img_3881.jpg" alt="Image" class="image lazyload ">
<img data-src="{{ path url }}" alt="{{ alt }}" class="image lazyload {{ modifier }} {{ class }}">
{
"url": "https://www.novicell.dk/media/61609/img_3881.jpg",
"alt": "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.