Meaning: The waves were moving in a lively and joyful way on the shore.
Choice of Words: Danced playfully: The verb "danced" is used to describe the movement of the waves in a lively and carefree manner. "Playfully" suggests that the waves are having fun and enjoying their movement.