Skip to content

rotate

Utilities for rotating an element in 2D or around individual 3D X, Y, and Z axes.

Interactive Iced
Rust · WASM
Iced + ISS preview demonstrating rotate
Click angle presets to rotate the live Iced widget
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"));
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)

scale · translate · skew · transform-origin