How to stop button action while animation is running and re activate when animation finish?

Hi everyone,
I have an animation that is activated by a button, I need to make the button stop working while the animation is running, and re activate it at the end to play it reverse.
Does anyone know how to solve my issue?
thanks.