Reputation: 61
I am trying to add pinching effect for an image..on pinchopen i want to zoomin and on pinchclose i want to zoomout an image. I have tried using jgestures plugin..but it dint work.I am using mobile jquery and html5.it s an ipad application.
any help is appreciated
Thank you
Upvotes: 0
Views: 2823
Reputation: 555
Take a look at zepto
This framework (same syntax as jquery) was developed especially for mobile devices and the beauty of that is that touch events are easily captured.
Example:
$('#imagelist img').pinchIn(function(){
// some function that makes your images larger
});
A working example here: http://jsfiddle.net/RUChL/10/
Upvotes: 1
Reputation: 3095
Take a look at http://scripty2.com/demos/touch/ and http://www.html5canvastutorials.com/labs/html5-canvas-multi-touch-scale-shape-with-kineticjs/
Upvotes: 0