Zoom In Zoom Out endlessly with camera movment

Hi I need some help regarding to zoom in zoom out functionality with camera movement as well. The example is like the infinite zoom. How can we do this in code . Thanks