Skip to content

perspective-origin

Utilities for controlling the vanishing point of a 3D perspective container.

ISS preview
Iced + ISS preview demonstrating perspective-origin
ISS preview for perspective-origin
use iced::widget::container;
use iss::{tw, TwExt};
let stage = container(card).tw(tw!("perspective-normal perspective-origin-top"));
Tailwind Class CSS Property / Effect iss::typed Builder
perspective-origin-center perspective-origin: center; .perspective_origin_center()
perspective-origin-top / bottom / left / right Edge vanishing points; .perspective_origin_top()
perspective-origin-top-left .. bottom-right Corner vanishing points; .perspective_origin_top_left()
perspective-origin-[30%_70%] Arbitrary vanishing point; .perspective_origin(BgCoord::Pct(30.0), BgCoord::Pct(70.0))

perspective · transform-origin · rotate