Animation when dragging the ball