Adjustments to do rotation animation.