This is just guessing but maybe if you make a walk animation where you just switch the location of the camera attachment when doing first person camera. I know you can do shooting animation where a weapon has a recoil when you shoot. You just move the weapon back a bit for one frame.