Rotate ha-icon-button?

I am using a ha-icon-button on a custom frontend component. I am looking for a way to rotate a ha-icon-button for a particular button to rotate the icon being used. Can this be accomplished in any way?

I have a hard time understandning what you want.

Do you want an icon to rotate inside a card and what card are you using?