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

Hello @Tanjil_Hossain , Any luck with this. I also want to achieve this same status.

in this example, the camera position and orbitControls target is tweened when you press any of the buttons or numbers.

1 Like

Hello @seanwasere , This helps a lot. Thanks for the help

1 Like