Answer:
This is called personification. It is the attribution of a personal nature or human characteristics to something nonhuman, or the representation of an abstract quality in human form.
Example- Lightning danced across the sky.
The wind howled in the night.
The car complained as the key was roughly turned in its ignition.
Rita heard the last piece of pie calling her name.
My alarm clock yells at me to get out of bed every morning.