Answer:
"Bright flashes of lightning" are given human qualities or just "lightning" as dancing is something humans do. The sentence pretty much means that the flashes of lightning were moving and flashing in the sky, just like humans dancing.
Step-by-step explanation: