Camera rotation/position change with animation

How can I rotate or change camera position with animation like this one on a button click? When I click on a button the camera should move like this one to a certain position/angle and stop there. Is there any way to do that? I’m using react three fiber with orbit controls and a perspective camera. If you have any ideas or code samples or any other stuff to do so please share. Thanks in advance