How to make camera continuously rotate from a to b

311740-58c9458f91f4d2138b344eda719cce5d.gif

I’ve been delving back into C++ again and one thing I want to do is figure out how to recreate a smooth rotation like the gif up above. Should I go for a timeline or is there something I’m completely oblivious of?

You can do this with a camera shake. WTF Is? Camera Shake Class in Unreal Engine 4 ( UE4 ) - YouTube