An example of refraction is when waves approach a straight shoreline at an angle. The part of the wave crest closer to shore is in shallower water and moving slower than the part away from the shore in deeper water. The wave crest in deeper water catches up so that the wave crest tends to become parallel to the shore.