timer inside a condition of a state machine ?

If you need the animation to last 3 seconds, force the animation not to loop yet last 3 seconds…
since its 1 frame you can delay it all you want.