Anim graph - wait until animation has finished before entering next state

then your animation is set to loop.
when it loops both the button and the animation time are ignored (or there would be no loop).