Animate collider

Hi there and thanks for looking I was wandering if someone could help with this.

I want an animation to start playing when my character collides with something that is taged “Push”. My animation name is “Push”

So to recap. My character collides with an object,an animation playes, and when they are no longer colliding the animation stops.

Thanks in Advance guys

I might use

function OnCollisionEnter()
//start animation

and

function OnCollisionExit()
//end animation

How do you mean?