Zoom into object and open popup on click

Mostly. You can use the same approach like discussed in Need help with gsap camera and OrbitControls animations. Meaning you compute the bounding box for the selected object, and then use its center and size for computing the new camera’s position.

The center vector can also be used for focusing the camrea.

1 Like