Meaning: The sentence is comparing the way leaves move in the wind to the way ballerinas dance.
Choice of Words: The word "danced" means to move rhythmically to music. The word "ballerinas" refers to female ballet dancers who wear tutus and perform graceful movements. "Leaves" are the parts of a plant that grow from the stems.