FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    transition

    function · ferroui-view · v0.5.0

    fn transition<P>(property: &'static P, duration: std::time::Duration) -> std::rc::Rc<dyn ITransition>
    where P: TypedProperty + ?Sized,
          <P as >::Value: Transitionable
    

    A transition of property that takes duration: when the property changes, the control moves to the new value over that time (transitions: transitions([transition(Visual::opacity_property(), ms(200))])).

    View source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.