Trait immi::animations::Animation
[−]
[src]
pub trait Animation { fn animate(&self, percent: f32) -> Matrix; }
Describes a way to modify an element during an animation.
Required Methods
fn animate(&self, percent: f32) -> Matrix
Takes an animation percentage between 0.0
and 1.0
. Returns the most-inner matrix to
multiply the element with.
Implementors
impl Animation for Translation
impl Animation for Zoom