Heres a guide on basic zoom directing:
When you want sort of a pan zoom effect, then you have to add a timer on the zoom.
For example:
@zoom on X Y to % in 2
The zoom will take 2 seconds to finish, therefore it will move instead of just automatically switch around on the screen.