animation rotation and pingPong