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="my-4 p-r">
<img class="d-18 d-ib ro-15 us-none" src="/img/clivia.jpg" />
<img class="o-20 d-18 d-ib l-0 p-a us-none" src="/img/clivia.jpg" />
</div>
<div class="my-4 p-r">
<img class="d-18 d-ib ro-30 us-none" src="/img/clivia.jpg" />
<img class="o-20 d-18 d-ib l-0 p-a us-none" src="/img/clivia.jpg" />
</div>
<div class="my-4 p-r">
<img class="d-18 d-ib ro-60 us-none" src="/img/clivia.jpg" />
<img class="o-20 d-18 d-ib l-0 p-a us-none" src="/img/clivia.jpg" />
</div>
</div>

Responsive Design

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

Target viewport sizes with breakpoint prefixes.

sm:ro-[value]
Small≥640px
md:ro-[value]
Medium≥768px
lg:ro-[value]
Large≥1024px
xxl:ro-[value]
Extra Large≥1536px

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-[value]

Negative Values

Use negative variants to rotate in the opposite direction.

Use the -- syntax to apply negative numeric values.

Syntax:ro--[value]