How to fix collision during animation

strong text

So my character animations are a little off. When standing idle everything works fine, when i move, run, walk, crouch prone the mesh seems to move down into ground then when i stop moving it comes back up. Why does this happen during animations only? how can i fix it?