This is a figure of speech involving a comparison between a thing to an another thing.
His heart is soft as a pillow.
Your crazy like a fox!
It is a figure of speech that involves applying an action to an object which is not literally applicable.
I fell for a trap which is love.
My brain burst because of that problems!
This is also a figure of speech that involve applying similar verbs to things.
The leaves dance when the wind blows.
Mr. Sun put a rainbow scart in Ms. Rain's shoulders.