Zoom any DOM element
using multi-touch gestures known from iOS devices.


  • PinchZoom
  • Double tap zoom
  • Dragging
  • Support for AMD module loaders
  • Hardware acceleration, using 3D CSS transformations

Device support

It was developed for a webbased iPad application. So its well tested on mobile Safari for iOS devices. Other devices might work as well but are currently not tested.

RTP.PinchZoom.js depends on Underscore.js and jQuery.


It's possible to combine PinchZoom with other libraries like swipe.js. It cares about event bubbling: Unused touch events are bubbling up in the DOM and can be handled by other libraries.

Demo: Swipe + PinchZoom


RTP.PinchZoom.js is free software; you can redistribute it and/or modify it under the terms of the MIT License.