how to arm sway with overshooting

i am wondering how to make my fps arms sway like i don’t mean weapon or something no i just mean the arm to sway and overshoot by overshoot i mean it overshoots a bit of the pose it’s supposed to be in then slowly goes back to normal kinda like amnesia the bunker