How to modify the value by script that animation using?

I have an enemy animation that will change color when dead.

When hurt, I want to give it a color flash by the script. However, it doesn’t work.

I know it because the Update Mode, usually, the animation will run after Update(). I can put the script in LateUpdate().
But I want to change the color by Coroutine or a function, the value will always be covered by animation.

I also tried to change the Animator Update Mode to Animate Physics before I change the color value. And change Animator Update Mode back to Normal after that. But it still no use.

So how could I do to resolve this problem??? Please help me!!! Thank you!!

can you tell me how to change updateMode using script?