stop our loops when the animation has finished, but trigger it again when necessary