How could i do this type of first person?

The hands move i guess based on the velocity of your camera and you can literally flick your mouse front or back to do flips with your character. I’m not entirely sure how to go about making that any help would be extremely appretiated. An example of this is around 2m11s in the youtube video linked below

Does anyone know?