The previous posters are correct. The auto exposure sensor in the camera is rapidly adjusting for the change in light entering the camera.
Some cameras have a way to lock the exposure, so the camera won't do this. Or set the camera on "Manual" exposure (if its possible with your camera), then the exposure won't change.
Good luck.
Yeoman