Query Animate Rotate Using Step January 30, 2020 by timlangeman $(‘.button’).click(function() { $(‘.box’).animate( { deg: 180 }, { duration: 1200, step: function(now) { $(this).css({ transform: ‘rotate(‘ + now + ‘deg)’ }); } } ); }); w3Schools Filed Under: links Tagged With: citeit-code, code, javascript, jquery