pub enum StaggerPattern {
Grid {
cols: usize,
rows: usize,
origin: GridOrigin,
step: f32,
},
Random {
seed: u32,
min_delay: f32,
max_delay: f32,
},
CenterOut {
count: usize,
step: f32,
},
EdgesIn {
count: usize,
step: f32,
},
}Expand description
Deterministic delay pattern for staggered animation starts.
Variants§
Grid
2D grid delay based on cell distance from an origin.
Fields
§
origin: GridOriginStarting origin.
Random
Deterministic random delay inside [min_delay, max_delay].
Fields
CenterOut
Start from the center index and move outward.
EdgesIn
Start from both edges and move inward.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StaggerPattern
impl RefUnwindSafe for StaggerPattern
impl Send for StaggerPattern
impl Sync for StaggerPattern
impl Unpin for StaggerPattern
impl UnsafeUnpin for StaggerPattern
impl UnwindSafe for StaggerPattern
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