On mouse over, I need to rotate an element counterclockwise 180˚ over an interval of 150ms, and then on mouse out I need to rotate the element counterclockwise back to the original 0˚ over 150ms.
I am open to using CSS3, jQuery, and JavaScript.
I use Chrome, but I also need to make it work for Firefox and Safari. Not too worried about IE.
Use CSS3
transform,transitionand Javascript to add/remove classes.Demo: http://jsfiddle.net/ThinkingStiff/AEeWm/
HTML:
CSS:
Script: