Animation not smooth between walk forward and walk back

Hi I have been using Unity for a few days and I cant seem to get my animations correct between walking forward and back, I thought I would post here to see if anyone with more experience maybe able to help out.

When my character goes from either idle to walk forward or from idle to walk back the animations are smooth and look good, however if I am walking forward and the press “S” to walk back the animation snaps to the walking back animation and doesn’t look good at all. I’ve added a short YouTube video to better show what I mean. I have a suspicion that it is because the float value is going from 1 to -1 too fast and this is what is causing the problem. Can anyone with more experience be able to offer a solution.

This is how my animation settings look

Animation clip in a blend tree need to be synchronized to work perfectly.

The idea is that all your clip in this blend tree need to begin on the same foot let say right and end on the same right foot. And each clip need to have at least on complete cycle( right foot, left foot, right foot).

So basically you first need to define your synchronize rule. On which foot all clip will begin and end and how many cycle you want. Once you know this you can trim all your clip with those rules and then assemble the synchronize blend tree.

When you set the speed to -1 for the walk backward, we are basically playing the clip from the end to the beginning,if you look closely you will see that in this case walking backward and walking forward doesn’t start on the same foot hence why you see this snap, simply check mirror option in your blend tree for your walk backward and it should fix your issue.