pub trait HasAnimationData: Any {
// Required methods
fn animation_name(&self) -> String;
fn pseudo_element(&self) -> String;
fn elapsed_time(&self) -> f32;
fn as_any(&self) -> &(dyn Any + 'static);
}
Expand description
A trait for any object that has the data for an animation event
Required Methods§
sourcefn animation_name(&self) -> String
fn animation_name(&self) -> String
The name of the animation
sourcefn pseudo_element(&self) -> String
fn pseudo_element(&self) -> String
The name of the pseudo-element the animation runs on
sourcefn elapsed_time(&self) -> f32
fn elapsed_time(&self) -> f32
The amount of time the animation has been running