$(document).ready(function(){ var deg=0; /* Storing all the images into a variable */ var images = $("#stage img").removeClass("default").addClass("animationReady"); var dim = { width:images.width(),height:images.height()}; var cnt = images.length; /* Finding the centers of the animation container: */ var centerX = $("#stage").width()/2; var centerY = $("#stage").height()/2 - dim.height/2; function rotate(step,total){ // This function loops through all the phone images, and rotates them // with "step" degrees (10 in this implementation) until total has reached 0 /* Increment the degrees: */ deg+=step; var eSin,eCos,newWidth,newHeight,q; /* Loop through all the images: */ for(var i=0;i;i++){>
dd: