setLoops

sets the iteration of the rotation animation.