Answer:
Personification
Step-by-step explanation:
Personification is giving non living things human like characteristics
Lighting is an example of a non living thing
In the expression "Lightning danced across the sky” lightning is given a human characteristic which is dancing.
Because lightning is a non living thing and is given a human characteristic in the saying the literary device being used is personification