Root Motion distance based on parameter?

Actually my problem is how to keep the character in the same place after dodging? It always snap back to the main position (before executing the animation)
I tried root motion but the character freezes after performing the animation + the camera doesn’t correctly follow.