zng::var::animation::easing

Function ease_in_out

source
pub fn ease_in_out(
    ease_fn: impl Fn(EasingTime) -> Factor,
    time: EasingTime,
) -> Factor
Expand description

Applies ease_in for the first half then ease_out scaled to fit a single duration (1.0).