I can rotate a div with css, and jquery .rotate, but i don\'t know how to animate it.
This works for me:
function animateRotate (object,fromDeg,toDeg,duration){ var dummy = $('') $(dummy).animate({ "margin-left":toDeg+"px" },{ duration:duration, step: function(now,fx){ $(object).css('transform','rotate(' + now + 'deg)'); } }); };