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.
Members
set_fade_inset_fade_in_upset_fade_in_downset_fade_in_leftset_fade_in_rightset_slide_in_from_leftset_slide_in_from_rightset_slide_in_from_topset_slide_in_from_bottomset_pop_inset_pop_outset_spring_inset_spring_outset_rotate_inset_rotate_outset_scale_inset_scale_out
set_fade_in
fn set_fade_in(element: &Control, milliseconds: f64)
Fades the control in using an opacity animation.
set_fade_in_up
fn set_fade_in_up(element: &Control, milliseconds: f64)
Fades the control in while translating it upward.
set_fade_in_down
fn set_fade_in_down(element: &Control, milliseconds: f64)
Fades the control in while translating it downward.
set_fade_in_left
fn set_fade_in_left(element: &Control, milliseconds: f64)
Fades the control in while translating it from the left.
set_fade_in_right
fn set_fade_in_right(element: &Control, milliseconds: f64)
Fades the control in while translating it from the right.
set_slide_in_from_left
fn set_slide_in_from_left(element: &Control, milliseconds: f64)
Slides the control in from the left.
set_slide_in_from_right
fn set_slide_in_from_right(element: &Control, milliseconds: f64)
Slides the control in from the right.
set_slide_in_from_top
fn set_slide_in_from_top(element: &Control, milliseconds: f64)
Slides the control in from the top.
set_slide_in_from_bottom
fn set_slide_in_from_bottom(element: &Control, milliseconds: f64)
Slides the control in from the bottom.
set_pop_in
fn set_pop_in(element: &Control, milliseconds: f64)
Runs a pop-in scale animation centered on the control.
set_pop_out
fn set_pop_out(element: &Control, milliseconds: f64)
Runs a pop-out scale animation centered on the control.
set_spring_in
fn set_spring_in(element: &Control, milliseconds: f64)
Runs a vertical spring-in animation similar to Framer Motion's preset.
set_spring_out
fn set_spring_out(element: &Control, milliseconds: f64)
Runs a vertical spring-out animation similar to Framer Motion's preset.
set_rotate_in
fn set_rotate_in(element: &Control, milliseconds: f64)
Rotates the control into view.
set_rotate_out
fn set_rotate_out(element: &Control, milliseconds: f64)
Rotates the control out of view.
set_scale_in
fn set_scale_in(element: &Control, milliseconds: f64)
Scales the control up into view.
set_scale_out
fn set_scale_out(element: &Control, milliseconds: f64)
Scales the control down out of view.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.