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
factor: f64
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]
Trait Implementations
impl Copy for EaseOut
[src]
impl Clone for EaseOut
[src]
fn clone(&self) -> EaseOut
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for EaseOut
[src]
impl Default for EaseOut
[src]
impl Interpolation for EaseOut
[src]
fn from_progress(&self, anim_progress: f64) -> f64
Takes a number representing the number of animation cycles that have elapsed, and returns the progress of the interpolation. Read more
fn calculate(
&self,
now: SystemTime,
start: SystemTime,
duration: Duration
) -> f64
&self,
now: SystemTime,
start: SystemTime,
duration: Duration
) -> f64
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
fn reverse(self) -> Reversed<Self> where
Self: Sized,
Self: Sized,
Reverses an interpolation. The element will start at its final position and go towards the start. Read more
fn repeat(self) -> Repeated<Self> where
Self: Sized,
Self: Sized,
Repeats an interpolation forever.
fn alternate_repeat(self) -> AlternateRepeated<Self> where
Self: Sized,
Self: Sized,
Repeats an interpolation forever. Every other cycle is reversed.