<div id="img-container" style="width: 400px">
<img src="https://unsplash.it/1200/900">
</div>
var options = {
width: 400,
zoomWidth: 500,
offset: { vertical: 0, horizontal: 10 }
};
new ImageZoom(document.getElementById("img-container"), options);
This Pen doesn't use any external CSS resources.