Fix animation on different rotations.