🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

peakzoom is a lightweight and easy-to-use jQuery which allows you to zoom in, rotate and pan an image on mouse click / drag or touch tap / swipe.

image-zoom image-pan

Documentation

jquery-peakzoom

A very simple jQuery plugin for <img> in-place zooming on click/tap/drag.

How to use:

  • wrap your img inside a double div, then:

    $('#outer-div').peakzoom();

API:

  • $('#outer-div').trigger('peakzoom.rotate') to rotate the img +90 degrees clockwise

  • $('#outer-div').trigger('peakzoom.destroy') remove the functionality

See the demo for, well, a demo.


You May Also Like