Skip to content

perspective

Utilities for establishing a 3D projection depth for rotated child elements.

ISS preview
Iced + ISS preview demonstrating perspective
ISS preview for perspective
use iced::widget::container;
use iss::{tw, TwExt};
let stage = container(card).tw(tw!("perspective-midrange perspective-origin-center"));
Tailwind Class CSS Property / Effect iss::typed Builder
perspective-dramatic perspective: 100px; .perspective_dramatic()
perspective-near / normal perspective: 300px / 500px; .perspective_near() / .perspective_normal()
perspective-midrange / distant perspective: 800px / 1200px; .perspective_distant()
perspective-none perspective: none; .perspective_none()
perspective-[650px] perspective: 650px; .perspective_px(650)

perspective-origin · transform-style · rotate · backface-visibility