Switch between wave and rotation animations.