pans a camera

In third person view, how to pans a camera across a vast landscape (terrain).

I am new to unity i want to pans the camera to (+x and -x ) direction.I want to pans the camera to first to positive x direction at 90 degree then negative x direction at -90 degree.

i want to pan the camera as show in the video below(from 14 sec to 21 sec in the video).
how to do the camera pan as show in the link below.
thanks in advance.

Try this:

function Start() {
	panStart = Time.time;
}

function Update() {
	Pan();
}
	
var panStart : float = 0;
function Pan() {
	if (Time.time - panStart < Mathf.PI * 4)
		transform.rotation = Quaternion.AngleAxis(Mathf.Sin(Time.time / 4) * 180, transform.up);
}