Transparent materials are visible because they refract light. The movement of light from one material to another is governed by very precise rules. Refraction is the deflection of a ray of light when it changes from one medium to another. This deflection depends on the index of refraction of the medium crossed. When the index of a transparent object is identical to that of the medium surrounding it, the light rays are not deflected and the object is “invisible”.
Educational Object Link