Skip to content

Rotate

Below, utility classes to apply transform property.

ClassProperties
.rotate-0transform: rotate(0deg);
.rotate-15transform: rotate(15deg);
.rotate-30transform: rotate(30deg);
.rotate-45transform: rotate(45deg);
.rotate-60transform: rotate(60deg);
.rotate-75transform: rotate(75deg);
.rotate-90transform: rotate(90deg);
.rotate-105transform: rotate(105deg);
.rotate-120transform: rotate(120deg);
.rotate-135transform: rotate(135deg);
.rotate-150transform: rotate(150deg);
.rotate-165transform: rotate(165deg);
.rotate-180transform: rotate(180deg);

Example(s)

html
<div class="rotate-15 ..."></div>
<div class="rotate-30 ..."></div>
<div class="rotate-45 ..."></div>
<div class="rotate-60 ..."></div>
<div class="rotate-75 ..."></div>
<div class="rotate-90 ..."></div>

Media Queries

transform: rotate() is supported by changing state on-the-fly! You can use it like this:

html
<svg class="small:rotate-45 medium:rotate-90 large:rotate-135 extra-large:rotate-180">...</svg>

Released under the Beerware 🍺 License.