jQuery Transition/Rotate Example
HTML
<div id="element"></div>
CSS
#element {
width:100px;
height:100px;
background-color:#000;
}
JavaScript
$("#element").css({transition: 'all 0.3s', transform: 'rotateY(50deg)'});
<div id="element"></div>
#element {
width:100px;
height:100px;
background-color:#000;
}
$("#element").css({transition: 'all 0.3s', transform: 'rotateY(50deg)'});