Struct immi::animations::EaseOut
[−]
[src]
pub struct EaseOut { pub factor: f32, }
An ease-out animation. The animation progresses quickly and then slows down before reaching its final position.
Fields
factor: f32
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 Debug 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 Copy for EaseOut
[src]
impl Default for EaseOut
[src]
impl Interpolation for EaseOut
[src]
fn calculate(&self, now: u64, start: u64, duration_ns: u64) -> f32
Takes a number of ticks (in nanoseconds) representing the current point in time, a number of ticks representing the point in time when the animation has started or will start, the duration in nanoseconds, and returns a value between 0.0 and 1.0 representing the progress of the animation. Read more