mask-image
Utilities for applying edge fade, linear, radial, and conic CSS masks to any widget subtree.
ISS preview

Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let fade = container(feed).tw(tw!("h-64 overflow-hidden mask-b-from-70% mask-b-to-100%"));use iss::typed::*;
let style = IssStyle::new().h(64).overflow_hidden().mask_b_from_pct(70.0).mask_b_to_pct(100.0);Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
mask-none |
mask-image: none; |
.mask_none() |
mask-t/r/b/l/x/y-from-60% / to-100% |
Tailwind v4 edge fade masks; |
.mask_b_from_pct(60.0).mask_b_to_pct(100.0) |
mask-linear-45 / mask-linear-from-50% |
Angled linear gradient masks; |
.mask_linear_deg(45.0) |
mask-radial / mask-radial-at-center |
Radial vignette masks; |
.mask_radial_at_center() |
mask-conic-90 |
Conic sweep masks; |
.mask_conic_deg(90.0) |
mask-[linear-gradient(...)] |
Arbitrary CSS mask expression; |
.mask_image_raw("linear-gradient(black, transparent)") |
Behavior Notes
Section titled “Behavior Notes”- Requires the default
tiny-skiaCargo feature.