How to dynamically rotate camera when moving?

I’m watching this GDC talk about simple dynamic camera movements that you can implement to subconsciously make the game feel a little better.

I just want to make the camera rotate a little bit to the left when character is moving left and rotate right when character is moving right. But still have a complete control with the camera rotation using mouse or joystick if player wants it.

I’ve trying to tinker about this where technically its the camera spring arm that needs rotation but also needs to have the “Use Pawn Control Rotation” turn off, which I don’t want. I still can’t figure this out. Hopefully someone can help me ;D