Meaning: The moving ridges of water in the ocean or sea were moving in a graceful and lively way on the surface of the ocean.
Choice of Words: Waves are moving ridges of water in the ocean or sea. Danced means they were moving in a graceful and lively way. Merrily means they were moving in a happy and carefree way. Upon means they were on the surface of the ocean.