Struct immi::animations::EaseOut [] [src]

pub struct EaseOut {
    pub factor: f64,
}

An ease-out animation. The animation progresses quickly and then slows down before reaching its final position.

Fields

The formula is 1.0 - exp(-linear_progress * factor).

The higher the factor, the quicker the element will reach its destination.

Methods

impl EaseOut
[src]

Builds a EaseOut object.

Trait Implementations

impl Copy for EaseOut
[src]

impl Clone for EaseOut
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EaseOut
[src]

Formats the value using the given formatter.

impl Default for EaseOut
[src]

Returns the "default value" for a type. Read more

impl Interpolation for EaseOut
[src]

Takes a number representing the number of animation cycles that have elapsed, and returns the progress of the interpolation. Read more

Takes an instance representing the current point in time, an instant representing the point in time when the animation has started or will start, the duration, and returns a value between 0.0 and 1.0 representing the progress of the animation. Read more

Reverses an interpolation. The element will start at its final position and go towards the start. Read more

Repeats an interpolation forever.

Repeats an interpolation forever. Every other cycle is reversed.