stop the previous animation before animating again
only show target when target defined