Rotate

Set the rotation for an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

<div class="d-g g-16 gtc-1 sm:gtc-3">
<div class="p-r my-4">
<img class="d-ib w-18 h-18 ro-15 us-none" src="/img/clivia.jpg" />
<img class="d-ib l-0 p-a w-18 h-18 o-20 us-none" src="/img/clivia.jpg" />
</div>
<div class="p-r my-4">
<img class="d-ib w-18 h-18 ro-30 us-none" src="/img/clivia.jpg" />
<img class="d-ib l-0 p-a w-18 h-18 o-20 us-none" src="/img/clivia.jpg" />
</div>
<div class="p-r my-4">
<img class="d-ib w-18 h-18 ro-60 us-none" src="/img/clivia.jpg" />
<img class="d-ib l-0 p-a w-18 h-18 o-20 us-none" src="/img/clivia.jpg" />
</div>
</div>

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:ro-*
Small640px
md:ro-*
Medium768px
lg:ro-*
Large1024px
xxl:ro-*
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:ro-*

Negative Values

Use negative variants to rotate in the opposite direction.

Use the -- syntax to apply negative numeric values.

Syntax:ro--*