When light traveling in a vacuum enters a new transparent medium, such as air, water, or glass, the speed is reduced in proportion to the refractive index of the new material. As the slider is translated to the right, the refractive index increases and the speed of light subsequently decreases.