How can I mirror 2d animation

I have an animation of walking right, and I 'd like to make walking left from it. I tried to checked mirror in animation state but it didn’t mirrored animation.
What I need to do?

Make a new animation, copy and paste the frames, then scale the x value of the character from 1 to -1 and it will flip it.

SpriteRenderer has a flip checkbox to mirror it.

Answer from https://forum.unity.com/threads/how-to-flip-animation-in-2d.375921/#post-2437750