rotate
Utilities for rotating an element in 2D or around individual 3D X, Y, and Z axes.
Interactive Iced
Rust · WASM
Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let card = container(body).tw(tw!("rotate-3 hover:rotate-0 origin-center rounded-xl p-4"));use iss::typed::*;
let style = IssStyle::new().rotate(3).hover(|s| s.rotate_none()).origin_center();Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
rotate-<deg> / -rotate-<deg> |
rotate: <deg>deg; |
.rotate(12) / .rotate(-6) |
rotate-none |
rotate: none; |
.rotate_none() |
rotate-x-<deg> / rotate-y-<deg> / rotate-z-<deg> |
3D axis rotations; |
.rotate_x(20) / .rotate_y(30) |
rotate-[15deg] |
Arbitrary rotation angle; |
.rotate(15) |
Related Utilities
Section titled “Related Utilities”scale · translate · skew · transform-origin