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 moresource§impl<'de> Deserialize<'de> for TransitionOrAnimationEventType
impl<'de> Deserialize<'de> for TransitionOrAnimationEventType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl MallocSizeOf for TransitionOrAnimationEventType
impl MallocSizeOf for TransitionOrAnimationEventType
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Auto Trait Implementations§
impl Freeze for TransitionOrAnimationEventType
impl RefUnwindSafe for TransitionOrAnimationEventType
impl Send for TransitionOrAnimationEventType
impl Sync for TransitionOrAnimationEventType
impl Unpin for TransitionOrAnimationEventType
impl UnwindSafe for TransitionOrAnimationEventType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more