I would like to have multiple images rotate, or gyrate, or spin, whatever the term best describes the 2D image rotate, from the same document.
The jquery plugin that does this for one image is: http://code.google.com/p/jqueryrotate/wiki/Examples
Although the example page shows many instances of rotating images, these are loaded from iframes. Meaning, each rotating image is the portion of another document shown through iframe.
I am trying to rotate different images, at different speeds, and in different angles and it is not working.
For example, for two images I used code
var angle = 0;
setInterval(function(){
angle+=3;
jQuery(".process-1").rotate(angle);
},50);
setInterval(function(){
angle-=3;
jQuery(".process-2").rotate(angle);
},30);
Thank you
It seems to be working fine on multiple images. You did not explain what you wanted, but here is the code for spinning three images…
http://jsfiddle.net/RwEme/603/
HTML:
EDIT:
Here is another working demo based on edits to the OP.
http://jsfiddle.net/RwEme/604/
It wasn’t working because you’re trying to use the same variable (
angle) for two different things.