Skip to content

transform-origin

Utilities for setting the pivot point around which rotations, scales, and skews occur.

ISS preview
Iced + ISS preview demonstrating transform-origin
ISS preview for transform-origin
use iced::widget::container;
use iss::{tw, TwExt};
let menu = container(items).tw(tw!("origin-top-right scale-95 hover:scale-100 rounded-xl"));
Tailwind Class CSS Property / Effect iss::typed Builder
origin-center transform-origin: center; .origin_center()
origin-top / right / bottom / left Edge transform origins; .origin_top() / .origin_left()
origin-top-left .. origin-bottom-right Corner transform origins; .origin_top_left()
origin-[25%_75%] Arbitrary transform origin; .origin(BgCoord::Pct(25.0), BgCoord::Pct(75.0))

rotate · scale · perspective-origin