fixed rotate animation logic