Skip to main content

Module motion

Module motion 

Source
Expand description

Motion: easing, values that move over time, and cell-stepped progress.

Terminal motion happens in whole cells, so movement is expressed as progress from 0 to 1 that widgets turn into cell positions with steps, while colours blend continuously with the same progress. Durations come from the theme’s [motion] table; when motion is reduced every animation lands on its end state at once.

Structs§

Tween
A number moving from one value to another over a duration.

Enums§

Easing
How progress accelerates over time.

Functions§

steps
Turns progress in 0..=1 into one of count + 1 cell positions, 0..=count.