struct
Stagger
pub struct Stagger {
pub each: Option<f64>,
pub amount: Option<f64>,
pub from: From,
pub grid: Option<(usize, usize)>,
pub ease: Ease,
}GSAP's stagger: a delay between targets (each) or spread over a total (amount), from a point in the list or a grid, optionally eased.
Fields
Methods
from
pub fn from(self, from: From) -> StaggerWhich target starts first: the first, the last, the centre, the edges or one by index.
grid
pub fn grid(self, rows: usize, cols: usize) -> StaggerMeasure the order on a grid of rows by cols, by distance from where it starts.