pub struct Stagger {
pub interval: f64,
pub origin: StaggerOrigin,
pub max_delay: Option<f64>,
}Expand description
Delays that start a group of animations one after another, such as list items cascading in.
delay(index, count) gives each item’s delay: interval seconds per step
away from the origin, shrunk if needed so the last item starts within
max_delay.
Fields§
§interval: f64§origin: StaggerOrigin§max_delay: Option<f64>Implementations§
Trait Implementations§
impl Copy for Stagger
impl StructuralPartialEq for Stagger
Auto Trait Implementations§
impl Forget for Stagger
impl Freeze for Stagger
impl Move for Stagger
impl RefUnwindSafe for Stagger
impl Send for Stagger
impl Sync for Stagger
impl Unpin for Stagger
impl UnsafeUnpin for Stagger
impl UnwindSafe for Stagger
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