made the rotate animation cross browser compatible