Sometimes you need to rotate, flip, or mirror an icon for it to work in your project or design. We've included some quick utilities to help with that.
To arbitrarily rotate and flip icons, use the
fa-flip-* classes when you reference an icon.
|Rotates an icon 90°
|Rotates an icon 180°
|Rotates an icon 270°
|Mirrors an icon horizontally
|Mirrors an icon vertically
|Mirrors an icon both vertically and horizontally
|Rotates an icon by a specific degree - setting an accompanying valid(opens new window) inline value for
--fa-rotate-angle is required
We've added a CSS custom property(opens new window) to make rotating icons more customizable and specific. Add the
.fa-rotate-by class to an icon and define your own angle.
|CSS Custom Property
|Set rotation angle of
|Any valid CSS
transform rotate value(opens new window)
Combining Rotating + Flipping
Our rotation utilities leverage CSS's transform property(opens new window) . You can both rotate and flip an icon, but you'll need to use some extra markup, such as a
<span> element, to do so as placing multiple rotate/flip classes on one element will just overwrite one another. Apply one rotate utility class on the parent element and another on the nested icon.