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

Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let stage = container(card).tw(tw!("perspective-midrange perspective-origin-center"));use iss::typed::*;
let style = IssStyle::new().perspective_midrange().perspective_origin_center();Class Reference
Section titled “Class Reference”| 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) |
Related Utilities
Section titled “Related Utilities”perspective-origin · transform-style · rotate · backface-visibility