Switching camera effects

hi, i would like to create an effect for my camera when they are switching to one another

its like when camera1 is about to switch to camera2 the camera1 will fade out and the camera2 will have fade in..

how can i do this using script? thanks in advance