Skew

new

Utilities for skewing elements with transform.

Quick reference

ClassProperties
.skew-x-0transform: skewX(0deg);
.skew-x-1transform: skewX(1deg);
.skew-x-2transform: skewX(2deg);
.skew-x-3transform: skewX(3deg);
.skew-x-6transform: skewX(6deg);
.skew-x-12transform: skewX(12deg);
.skew-y-0transform: skewY(0deg);
.skew-y-1transform: skewY(1deg);
.skew-y-2transform: skewY(2deg);
.skew-y-3transform: skewY(3deg);
.skew-y-6transform: skewY(6deg);
.skew-y-12transform: skewY(12deg);

Basic usage

‚Äč

Skewing an element

Use the skew-x-{amount} and skew-y-{amount} utilities to skew an element.

skew-y-0

skew-y-3

skew-y-6

skew-y-12

<img class="skew-y-0 ...">
<img class="skew-y-3 ...">
<img class="skew-y-6 ...">
<img class="skew-y-12 ...">

Using negative values

To use a negative skew value, prefix the class name with a dash to convert it to a negative value.

<img class="-skew-y-6 ...">

Removing transforms

To remove all of the transforms on an element at once, use the transform-none utility:

<div class="scale-75 translate-x-4 skew-y-3 transform-none">
  <!-- ... -->
</div>