clear stops the animation if currently running