changes rotation angle for smooth animation