FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FramerMotionAnimations

    struct · ferroui-xaml-behaviors-animations · v0.5.0

    struct FramerMotionAnimations
    

    Provides composition animations inspired by popular Framer Motion presets.

    Every set_* function animates element, the control to animate, over milliseconds, the animation duration expressed in milliseconds, when the control is loaded.

    View source

    Members

    set_fade_in

    fn set_fade_in(element: &Control, milliseconds: f64)
    

    Fades the control in using an opacity animation.

    Source

    set_fade_in_up

    fn set_fade_in_up(element: &Control, milliseconds: f64)
    

    Fades the control in while translating it upward.

    Source

    set_fade_in_down

    fn set_fade_in_down(element: &Control, milliseconds: f64)
    

    Fades the control in while translating it downward.

    Source

    set_fade_in_left

    fn set_fade_in_left(element: &Control, milliseconds: f64)
    

    Fades the control in while translating it from the left.

    Source

    set_fade_in_right

    fn set_fade_in_right(element: &Control, milliseconds: f64)
    

    Fades the control in while translating it from the right.

    Source

    set_slide_in_from_left

    fn set_slide_in_from_left(element: &Control, milliseconds: f64)
    

    Slides the control in from the left.

    Source

    set_slide_in_from_right

    fn set_slide_in_from_right(element: &Control, milliseconds: f64)
    

    Slides the control in from the right.

    Source

    set_slide_in_from_top

    fn set_slide_in_from_top(element: &Control, milliseconds: f64)
    

    Slides the control in from the top.

    Source

    set_slide_in_from_bottom

    fn set_slide_in_from_bottom(element: &Control, milliseconds: f64)
    

    Slides the control in from the bottom.

    Source

    set_pop_in

    fn set_pop_in(element: &Control, milliseconds: f64)
    

    Runs a pop-in scale animation centered on the control.

    Source

    set_pop_out

    fn set_pop_out(element: &Control, milliseconds: f64)
    

    Runs a pop-out scale animation centered on the control.

    Source

    set_spring_in

    fn set_spring_in(element: &Control, milliseconds: f64)
    

    Runs a vertical spring-in animation similar to Framer Motion's preset.

    Source

    set_spring_out

    fn set_spring_out(element: &Control, milliseconds: f64)
    

    Runs a vertical spring-out animation similar to Framer Motion's preset.

    Source

    set_rotate_in

    fn set_rotate_in(element: &Control, milliseconds: f64)
    

    Rotates the control into view.

    Source

    set_rotate_out

    fn set_rotate_out(element: &Control, milliseconds: f64)
    

    Rotates the control out of view.

    Source

    set_scale_in

    fn set_scale_in(element: &Control, milliseconds: f64)
    

    Scales the control up into view.

    Source

    set_scale_out

    fn set_scale_out(element: &Control, milliseconds: f64)
    

    Scales the control down out of view.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • MarkupTyped

    Availability

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