FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    use_animation

    function · ferroui-view · v0.5.0

    fn use_animation<C, D>(target: crate::control_flow::NodeRef<C>, trigger: D, animation: impl FnOnce() -> AnimationBuilder + 'static)
    where C: ObjectType + Upcast<ferroui_base::animation::Animatable>,
          D: PartialEq + 'static
    

    Runs animation on the control of target once the controls of the run are in place, and again whenever trigger differs from the last run's; a run still in progress is cancelled first, and when the component is taken out.

    View source

    Availability

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