This component is developed for my personal projects. The initial code has based on MetroUI component code. This code is licensed under MIT license at Github.
The image comparer component is created using the html notation
<div class="image-compare"> <img src="./images/comparer-1.jpg"> <img src="./images/comparer-2.jpg"> </div>
var el = document.querySelector('.image-compare'); var comp = new ImageCompare(el, options);
See more in the Getting Started page.