Pan effect with 1/2 intensity

How would I go about creating a pan effect on a moving mirror unit where the unit pans from, say, left to right @ full intensity, then intensity drops to zero, the mirror pans from right to left, and then the intensity goes to full and the effect repeats?
Related