pub struct Anim {
pub kind: Kind,
pub duration: f64,
pub by: By,
pub stagger: Option<f64>,
pub ease: Ease,
pub direction: Dir,
pub distance: f32,
pub scale: f32,
}Expand description
One of animation.in / animation.out.
Fields§
§kind: Kind§duration: f64Seconds per unit (typewriter: for all of them).
by: By§stagger: Option<f64>Seconds between units; None picks one for by.
ease: Ease§direction: DirThe way the text moves (slide) or the reveal travels (wipe).
distance: f32Slide distance, fraction of the frame height.
scale: f32Pop’s starting scale.
Implementations§
Trait Implementations§
impl Copy for Anim
impl StructuralPartialEq for Anim
Auto Trait Implementations§
impl Forget for Anim
impl Freeze for Anim
impl RefUnwindSafe for Anim
impl Send for Anim
impl Sync for Anim
impl Unpin for Anim
impl UnsafeUnpin for Anim
impl UnwindSafe for Anim
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more