how to trigger a animation then stop

i want it so when you go threw a trigger a animation starts then it finishes how do i do that

Look here for a ontrigger function http://unity3d.com/support/documentation/ScriptReference/Collider.OnTriggerEnter.html

And then inside the code

function OnTriggerEnter (other : Collider) {

//Start animation

}

Look here for the animation info http://unity3d.com/support/documentation/ScriptReference/Animation.html