How do I make the animation pause whenever the marker is lost, and continue when the marker comes back into view?