Meaning: The clouds moved across the sky in a soft and fluffy way, like cotton balls.
Choice of Words: The word "danced" is used to describe the way the clouds move across the sky. "Cotton balls" are soft and fluffy, and the clouds are seen as being similar.