Constant freya::elements::rect::opacity

pub const opacity: (&'static str, Option<&'static str>, bool);
Expand description

Specify the opacity of an element and all its descendants.

ยงExample

fn app() -> Element {
    rsx!(
        rect {
            opacity: "0.5", // 50% visible
            label {
                "I am fading!"
            }
        }
    )
}