How to stop animation on trigger?

I am trying to figure out how to stop animation on trigger, i’ve looked everywhere and i cannot find the answer, can anyone help me please? Thanks in advance.

Attach a script on your trigger containing the function OnTriggerEnter, add a reference to your object with an animation, then use animatedObject.animation.Stop(); which will reset the animation. If you want to pause the animation, I suggest you look here. Good luck.