Meaning: This sentence describes the waves moving in a graceful and rhythmic manner as they reach the sandy shore.
Choice of Words: The word "danced" personifies the waves, suggesting their graceful and rhythmic movement, while "rhythmically" emphasizes their consistent pattern.