wilq32-pwitkowski / jqueryrotate

jQueryRotate - plugin to rotate images by any angle cross-browse with animation support
http://jqueryrotate.com
151 stars 58 forks source link

Step function/method/callback (enhancement) #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there a possibility of adding a step function support or an event that would 
fire after every step of the animation? 

Could be useful for positioning additional elements to line with the rotated 
image, for example.

example:
$("#image").rotate({ animateTo: 180, duration:2000, step : function() { 
doStuff() } });

where doStuff would fire multiple times...

Original issue reported on code.google.com by lauri.su...@gmail.com on 29 Feb 2012 at 8:02

GoogleCodeExporter commented 9 years ago
Currently its not possible, of course you could change a sourcecode of a plugin 
inside a _animate function to call an external function.

I put on my list of TODO-s

Original comment by wil...@gmail.com on 29 Feb 2012 at 9:05

GoogleCodeExporter commented 9 years ago
Implemented in jQueryRotate 2.2 and 3.1

Original comment by wil...@gmail.com on 13 Mar 2012 at 11:40