Answer:
It's personification
Explanation:
When you give an object or non human thing human features that's personification "As it drove past, the car's headlights winked at me". Cars do not wink like a human. But the writer put human feautures to the car
Example: "the tree swayed its branches in the wind waving to say hi to me" (trees do not wave like humans but just by saying it waved is personification because now the tree was given human features)
(I hope this helped you!)
:)