Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs/pages/utilities/effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,23 @@ To rotate an element, the `rotate-*` classes can be used.
</div>
<code>.rotate-90</code>
</div>
<div class="flex-col gap-2 items-center justify-center bg-muted p-4 rounded relative">
<div class="bg-accent rounded">
<div class="rotate-180 text-light m-8 bg-accent-variant flex-center rounded h-8 w-8 font-mono font-bold">A</div>
</div>
<code>.rotate-180</code>
</div>
</div>

```html
<div class="-rotate-90 ..."></div>
<div class="..."></div>
<div class="rotate-90 ..."></div>
<div class="rotate-180 ..."></div>
```

```css
.rotate-90 { transform: rotate(90deg); }
.-rotate-90 { transform: rotate(-90deg); }
.rotate-90 { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }
```
3 changes: 3 additions & 0 deletions src/_utilities.css
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,9 @@
.rotate-90 {
transform: rotate(90deg);
}
.rotate-180 {
transform: rotate(180deg);
}
.-rotate-90 {
transform: rotate(-90deg);
}