How do you slowly zoom in your camera from main camera?

I am using this script which i did, so whenever i click an object it abruptly jumps into the “zoom-ed camera”
What should i change or which script should i use in order for it to slowly zoom in from “main camera” to “zoomed-camera”

here is my script

#pragma strict

    var maincam : Camera;
    var zoomcam1 : Camera;
   
    var object1: Transform;
    var objecthit : Transform;
   
function Start () {
maincam.camera.enabled=true;
zoomcam1.camera.enabled=false;
}


function Update () {

if(Input.GetMouseButtonUp(0)){
    var ray : Ray = maincam.ScreenPointToRay (Input.mousePosition);
    var hit : RaycastHit;
    if (Physics.Raycast (ray, hit)) {
    objecthit=hit.transform;
    if(objecthit.gameObject.tag=="Box397"){
    maincam.camera.enabled=false;
zoomcam1.camera.enabled=true;
                }   
        }
    }
}

Well… Use only one camera, and interpolate it’s transform and FoV.

Can you give me an example? For me i have two

Need help :frowning:
from what lightStriker said i used this but not working

using UnityEngine;
using System.Collections;

public class movetowardstest : MonoBehaviour {

    //Move Towards Target
    public float moveSpeed = 35.0f;
    public GameObject targetObject;
    private bool movingTowardsTarget = false;



    // Use this for initialization
    void Start () {
   
    }
   
    // Update is called once per frame
    void Update () {
        if(Input.GetMouseButtonUp(0))
        {
            if(movingTowardsTarget == true)
            {
                movingTowardsTarget == false;
            }
            else
            {
                movingTowardsTarget = true;
            }
        }
        if(movingTowardsTarget)
        {
            MoveTowardsTarget(targetObject);
        }
    }

   
    }
        public void MoveTowardsTarget(GameObject target)
    {
        transform.position = Vector3.MoveTowards(transform.position, target.transform.position, moveSpeed * Time.deltaTime);
    }
}

however there is error…after clicking on the object i have to go to another object, but how would i be able to do that?