jQuery Transition/Rotate Example

by Brett DeWoody

HTML

<div id="element"></div>

CSS

#element {
    width:100px;
    height:100px;
    background-color:#000;
}

JavaScript

$("#element").css({transition: 'all 0.3s', transform: 'rotateY(50deg)'});