Possible Duplicate:
Rotating a Div Element in jQuery
How would I rotate a DIV and all the elements inside to a certain degree using jQuery? Like instead of just 90, 180, etc.. I would be able to set it at say 88.
Here is the code for the modern browsers with CSS (applied through jquery for your case)
$('#divID').css({
'-moz-transform':'rotate(88deg)',
'-webkit-transform':'rotate(88deg)',
'-o-transform':'rotate(88deg)',
'-ms-transform':'rotate(88deg)',
'transform':'rotate(88deg)'
});
Have a look at the transform
docs property
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With