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);
}
Available on crate feature html only.
Expand description

A trait for any object that has the data for an animation event

Required Methods§

source

fn animation_name(&self) -> String

The name of the animation

source

fn pseudo_element(&self) -> String

The name of the pseudo-element the animation runs on

source

fn elapsed_time(&self) -> f32

The amount of time the animation has been running

source

fn as_any(&self) -> &(dyn Any + 'static)

return self as Any

Implementors§