Tilting a first person controlled camera?

This helped me aswell but how do you go about smoothing the tilt?