Skip to content

Instantly share code, notes, and snippets.

@jdkealy
Created November 1, 2011 08:40
Show Gist options
  • Save jdkealy/1330164 to your computer and use it in GitHub Desktop.
Save jdkealy/1330164 to your computer and use it in GitHub Desktop.
var rotation = function (){
$("#img").rotate({
angle:0,
animateTo:360,
callback: rotation,
easing: function (x,t,b,c,d){ // t: current time, b: begInnIng value, c: change In value, d: duration
return c*(t/d)+b;
}
});
}
rotation();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment