after effects how to Zoom-in but keep same size (zooming and cropping)
There are a couple of ways to achieve this:


Use a track matte. Create a layer with the desired size / shape and put it above the zooming layer. You can use masks to create any shape you want, or use an image that has an alpha channel, or even just a copy of the original layer without the animated scale. On the zooming layer go to the Tack matte / mode panel (you may have to hit f4 to toggle between switches and modes), and choose Alpha Matte "layer name". This will turn off visibility for the top layer, and apply its transparency to the layer below.


Use a layer with the stencil alpha transfer mode above your original layer. This does a similar thing to a track matte, but it's not just for one layer, it's for every layer below the matte layer. And the visibility for the matte layer has to be on for it to work.
Use a preComp. Pre-comping replaces the original layer (or layers) with a composition containing just that layer(s). So you want to pre-comp the layer with the animated Scale property – select it and hit shift-cmd/ctrl-c or choose Layer>Pre-Compose from the menu. In the dialogue that appears choose move all attributes into the new composition. Now you can add a mask to the pre-comp to crop off the scaled edges of the layer. A pre-comp is similar to what you'd get if you rendered the layer as a movie and then brought that back into your comp (but with a few advantages). As the pre-comp is not zooming, just its contents, the mask will crop the edges as the contents get bigger.