Interactive simulation
Light changes speed when it passes from one transparent medium to another, so it bends at the boundary. Drag the angle of incidence, pick the two media, and compare the angle of refraction with the value Snell’s law predicts.
See how a ray bends between two media, measure sin i / sin r, and find when total internal reflection happens.