I'm usin Jquery Rotate Plugin for rotating a picture and save the new angle of rotation of it. When someone restart the rotation of this picture, I would like to restart at the same angle but the rotation stop at it's original point and don't loop like the same time I rotate it.
Thannks for your help :)
var anglestop = 0;
$('.rotate').click(function() {
var rotation = function (){
$('#image').rotate({
angle:anglestop,
animateTo:360,
duration: 3000,
callback: rotation,
easing: function (x,t,b,c,d){
return c*(t/d)+b;
},
bind: {
click: function(){
$(this).stopRotate();
anglestop=$(this).getRotateAngle();
}}
});
}
rotation();
});