Waves change direction when they move from one medium to another and the speed of the wave is different in each.
areas of low density due to oscillations.
For refraction to occur in a wave, the wave must enter a new medium at an angle.
Refraction occurs for any waves, where there's a change in the medium.
nearshore part of the wave is slowed.