Difficulties with Vector3.Lerp and camera position

Hello person. I’m trying to get it so that when my character flies over a certain speed limit the camera will zoom out further on the Z axis and uses the Lerp function so that it’s a smooth transition. The camera position is changing, however, the jump is instantaneous from 20 on the Z axis to 30 on the Z axis.

I think the part that I am not understanding is the “float t” of the Vector3.Lerp. It is going from position a to be position b but not linearly. New to coding. Thanks for any and all help.

public class CameraFollower : MonoBehaviour
{

public float smoothSpeed = 0.125f;
public Transform target;
public Vector3 offset;
public Vector3 newoffset;
[SerializeField]
[Range(0f, 5f)]
public float Time = 2.5f;


void LateUpdate()
{

    var Camera1 = transform.position = target.position + newoffset;
    var Camera2 = transform.position = target.position + offset;

    if (Movement.speed > 30)
    {     
        transform.position = Vector3.Lerp(Camera1, Camera2, Time);
    }
}

}

Hello, your issue is that dont really understand how Lerp works

lerp returns the value by a % for example if you have Camera1 and Camera2, and you lerp by 0.5 it will return the exact center between camera1 and camera2, t == 1 it will return camera2 and if t == 0 it will return camera1

so simply change

[Range(0f, 5f)]
 public float Time = 2.5f;

to

[Range(0f, 1f)]
 public float Time = 0.5f;