Super simple Zoom image vanilla javascript medium like

I need an ability to zoom images on my site. Luckily I found this javascript plugin by Tholman that very easy to use.

The library called “Intense Images” Github Repo

Here’s how I use it:

  1. Load from CDN
<script src=""></script>
  1. Assign your elements

  window.addEventListener('load', function () {
  }, false);

Done that’s it!

To change only certain element, change your ‘img’ with any elements indicator, either by id, class or tag name. For example, if you want the images only zoomable on a certain id, then..

  window.addEventListener('load', function () {
    Lightense('#certain-div img');
  }, false);

To change the default behavior, look at this documentation