How do you zoom in (animated) on a portion of your canvas? I'm using After Effects to create a Motion graphic and I would like to make the animation zoom in on a specific point, do something and then zoom out again. 

To clarify what I exactly try to achieve: I'm animating a browser and I would like to zoom in on the URL bar, type an URL and then zoom out and work on just like before zooming. 

One option is to scale all the visible layers, so it looks zoomed, but that's a strange way to achieve the zooming effect, I think.

What's your advice?
Here's what I would do...


Create a camera
Create a null object
Set the parent of the null object to be the camera
Make the null object a '3D' object
Use the null object's properties to zoom and move the camera around, e.g. use the 'z' position to zoom


You could do this with the camera by itself, but the null object is sometimes easier to deal with. Ease in and out of the keyframes for a smooth animation. I hope this helps!