Ocean swells slow, bend, and break, as they pass into shallow water.
Waves at sea are discussed in some detail at ...
http://ww.seafriends.org.nz/oceano/waves.htm