rstacruz / jquery.transit

Super-smooth CSS3 transformations and transitions for jQuery
http://ricostacruz.com/jquery.transit
7.29k stars 863 forks source link

$element.css('rotate', '30deg').css('rotate', '') should remove rotate(30deg) in transform property #167

Open rerefreelancer opened 10 years ago

pingram3541 commented 10 years ago

Not sure the point of this because removed property essentially cancels out the first but the solution for now if you really wanted to do this:

$element.css('rotate', '30deg').css('rotate', '0deg') or $element.css('rotate', '30deg').attr('style', '') would remove all inline styling