Added support for rotation animation.