jQuery Animate CSS3 Rotation

Shows how you must use the step callback to apply rotational animations.

HTML

<div id="myDiv"><div>

CSS

#myDiv {
    position: absolute;
    height: 50px;
    width: 80px;
    background-color: blue;
}

JavaScript

$('#myDiv').animate({  left: 50, top: 50 }, {
    step: function(now, fx) {
      $(this).css('transform','rotateY('+(fx.pos * 90)+'deg)');
    },
    duration: 1000,
    easing: 'easeInQuint'
});