I am trying to a rotate an icon with transform: rotateZ(90deg)
but it seems like it is ignoring it.
When I add a transition to the icon I can see the animation of the icon rotating but then it snaps back into place when it is done animating.
Here it is:
@import url(http://weloveiconfonts.com/api/?family=fontawesome);
/* fontawesome */
[class*="fontawesome-"]:before {
font-family: 'FontAwesome', sans-serif;
}
span {
transition: 2s;
border: 1px solid red;
font-size: 500px;
}
span:hover {
transform: rotateZ(90deg);
}
<span class="fontawesome-download-alt"></span>