pub struct AnimationEffect {
pub delay: f64,
pub end_delay: f64,
pub iteration_start: f64,
pub iterations: f64,
pub duration: f64,
pub direction: String,
pub fill: String,
pub backend_node_id: Option<BackendNodeId>,
pub keyframes_rule: Option<KeyframesRule>,
pub easing: String,
}Expand description
AnimationEffect instance AnimationEffect
Fields§
§delay: f64AnimationEffect’s delay.
end_delay: f64AnimationEffect’s end delay.
iteration_start: f64AnimationEffect’s iteration start.
iterations: f64AnimationEffect’s iterations.
duration: f64AnimationEffect’s iteration duration.
Milliseconds for time based animations and
percentage [0 - 100] for scroll driven animations
(i.e. when viewOrScrollTimeline exists).
direction: StringAnimationEffect’s playback direction.
fill: StringAnimationEffect’s fill mode.
backend_node_id: Option<BackendNodeId>AnimationEffect’s target node.
keyframes_rule: Option<KeyframesRule>AnimationEffect’s keyframes.
easing: StringAnimationEffect’s timing function.
Implementations§
Source§impl AnimationEffect
impl AnimationEffect
pub fn builder() -> AnimationEffectBuilder
Source§impl AnimationEffect
impl AnimationEffect
pub const IDENTIFIER: &'static str = "Animation.AnimationEffect"
Trait Implementations§
Source§impl Clone for AnimationEffect
impl Clone for AnimationEffect
Source§fn clone(&self) -> AnimationEffect
fn clone(&self) -> AnimationEffect
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnimationEffect
impl Debug for AnimationEffect
Source§impl<'de> Deserialize<'de> for AnimationEffect
impl<'de> Deserialize<'de> for AnimationEffect
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnimationEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnimationEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AnimationEffect
impl PartialEq for AnimationEffect
Source§impl Serialize for AnimationEffect
impl Serialize for AnimationEffect
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AnimationEffect
Auto Trait Implementations§
impl Freeze for AnimationEffect
impl RefUnwindSafe for AnimationEffect
impl Send for AnimationEffect
impl Sync for AnimationEffect
impl Unpin for AnimationEffect
impl UnwindSafe for AnimationEffect
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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