I have an image which is rotated 90 degress right and left continuously and I’m trying to stop it but I can’t figure out how.
I tried to put the function in an If statement so I can call function = false; or true but it doesn’t work.
Here is a fiddle: http://jsfiddle.net/gpPcU/
You can change the callback function to false