Move Camera to Mouse Click R3F

I’m currently working on a virtual art gallery with R3F, and i’m trying to reproduce this camera movement on mouse click :
I started THREEjs recently, I am a little lost in the way to proceed to get this result, i found it pretty awsome!

If you have any advice, I’d love to hear it!

Thanks for reading me!

not 100% the same but these two boxes could be interesting to look at

1 Like

Hey, i already saw them thanks !