You can listen to the following events about animations.
Event called when an animation is going to start. You can cancel the event to prevent the animation from starting. More info here.
Event called when an animation is going to finish. More info here.