Creates an animation effect in which an image rotates.