Made the animation controllable with a boolean, made it restart when the alert is dismissed