默认效果

JavaScript

var zooming = new Zooming();
zooming.listen('.img-zoomable');

HTML

<a href="images/1.jpg">
    <img class="img-zoomable" src="images/1s.jpg" alt="">
</a>