pub enum TransitionOrAnimationEventType {
TransitionRun,
TransitionStart,
TransitionEnd,
TransitionCancel,
AnimationStart,
AnimationIteration,
AnimationEnd,
AnimationCancel,
}
Expand description
The type of transition event to trigger. These are defined by CSS Transitions § 6.1 and CSS Animations § 4.2
Variants§
TransitionRun
“The transitionrun event occurs when a transition is created (i.e., when it is added to the set of running transitions).”
TransitionStart
“The transitionstart event occurs when a transition’s delay phase ends.”
TransitionEnd
“The transitionend event occurs at the completion of the transition. In the case where a transition is removed before completion, such as if the transition-property is removed, then the event will not fire.”
TransitionCancel
“The transitioncancel event occurs when a transition is canceled.”
AnimationStart
“The animationstart event occurs at the start of the animation. If there is an animation-delay then this event will fire once the delay period has expired.”
AnimationIteration
“The animationiteration event occurs at the end of each iteration of an animation, except when an animationend event would fire at the same time.”
AnimationEnd
“The animationend event occurs when the animation finishes”
AnimationCancel
“The animationcancel event occurs when the animation stops running in a way that does not fire an animationend event…”
Implementations§
source§impl TransitionOrAnimationEventType
impl TransitionOrAnimationEventType
sourcepub fn is_transition_event(&self) -> bool
pub fn is_transition_event(&self) -> bool
Whether or not this event is a transition-related event.
Trait Implementations§
source§impl Clone for TransitionOrAnimationEventType
impl Clone for TransitionOrAnimationEventType
source§fn clone(&self) -> TransitionOrAnimationEventType
fn clone(&self) -> TransitionOrAnimationEventType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more