How can I move a parent in animation editor without moving the child(s)?

Im animating my gun viewmodel right now and instead of moving the gun from the side, i want the gun to be in the center of the viewmodel and model the arms around it, but this means if i move the armous around the gun mov es around with it, so the gun will no longer be in the center of the viewmodel, How can I fix this?
The only ways i can think of are either importing the models to blender and animating there or adding the position and rotation of the child every time i move the parent to cancel out the transformation but that would be very tedious and really isn’t a good workflow.

Any help would be appreciated, thanks.

I don’t think you can, but I am not an experienced animator.