I belive you are asking about the tilt of the camera when strafing which is surprisingly simple and answered here.