Skip to content
Check out the all-new Web Awesome AND get an exclusive lifetime discount on Font Awesome!
Live on Kickstarter!

Rotate Icons

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-rotate-* and fa-flip-* classes when you reference an icon.

<div class="fa-3x">
<i class="fa-solid fa-snowboarding"></i>
<i class="fa-solid fa-snowboarding fa-rotate-90"></i>
<i class="fa-solid fa-snowboarding fa-rotate-180"></i>
<i class="fa-solid fa-snowboarding fa-rotate-270"></i>
<i class="fa-solid fa-snowboarding fa-flip-horizontal"></i>
<i class="fa-solid fa-snowboarding fa-flip-vertical"></i>
<i class="fa-solid fa-snowboarding fa-flip-both"></i>
</div>

Rotate Classes

ClassDetails
fa-rotate-90Rotates an icon 90°
fa-rotate-180Rotates an icon 180°
fa-rotate-270Rotates an icon 270°
fa-flip-horizontalMirrors an icon horizontally
fa-flip-verticalMirrors an icon vertically
fa-flip-bothMirrors an icon both vertically and horizontally
fa-rotate-byRotates an icon by a specific degree - setting an accompanying valid inline value for --fa-rotate-angle is required

Custom Rotation

We’ve added a CSS custom property to make rotating icons more customizable and specific. Add the .fa-rotate-by class to an icon and define your own angle.

CSS Custom PropertyDetailsAccepted Values
--fa-rotate-angleSet rotation angle of.fa-rotate-byAny valid CSS transform rotate value

<div class="fa-3x">
<i class="fa-solid fa-snowboarding"></i>
<i class="fa-solid fa-snowboarding fa-rotate-by" style="--fa-rotate-angle: 45deg;" ></i>
<i class="fa-solid fa-snowboarding fa-rotate-by" style="--fa-rotate-angle: -45deg;" ></i>
<i class="fa-solid fa-snowboarding fa-rotate-by" style="--fa-rotate-angle: 19deg;" ></i>
<i class="fa-solid fa-snowboarding fa-rotate-by" style="--fa-rotate-angle: 80deg;" ></i>
<i class="fa-solid fa-snowboarding fa-rotate-by" style="--fa-rotate-angle: 0.25deg;" ></i>
<i class="fa-solid fa-snowboarding fa-rotate-by" style="--fa-rotate-angle: -0.25deg;" ></i>
</div>

Combining Rotating + Flipping

Our rotation utilities leverage CSS’s transform property. 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.

<div class="fa-3x">
<!-- A icon that's rotated 90 degress and flipped horizontally -->
<span class="fa-rotate-90" style="display: inline-block;">
<i class="fa-solid fa-snowboarding fa-flip-horizontal"></i>
</span>
<!-- A icon that's flipped horizontally and rotated 90 degrees -->
<span class="fa-flip-horizontal" style="display: inline-block;">
<i class="fa-solid fa-snowboarding fa-rotate-90"></i>
</span>
<!-- A icon that's flipped vertically and rotated 270 degress -->
<span class="fa-flip-vertical" style="display: inline-block;">
<i class="fa-solid fa-snowboarding fa-rotate-270"></i>
</span>
<!-- A icon that's rotated 270 degress and flipped vertically -->
<span class="fa-rotate-270" style="display: inline-block;">
<i class="fa-solid fa-snowboarding fa-flip-vertical"></i>
</span>
<!-- A icon that's flipped on both axes and arbitrarily rotated 120 degress -->
<span class="fa-flip-both" style="display: inline-block;">
<i class="fa-solid fa-snowboarding fa-rotate-by" style="--fa-rotate-angle: 120deg;"></i>
</span>
<!-- A icon that's arbitrarily rotated 20 degres and flipped on both axes -->
<span class="fa-rotate-by" style="display: inline-block; --fa-rotate-angle: 20deg;">
<i class="fa-solid fa-snowboarding fa-flip-both"></i>
</span>
</div>