pub struct AnimationEffect<'a> { /* private fields */ }Expand description
AnimationEffect instance
Implementations§
Source§impl<'a> AnimationEffect<'a>
impl<'a> AnimationEffect<'a>
Sourcepub fn builder(
delay: f64,
end_delay: f64,
iteration_start: f64,
duration: f64,
direction: impl Into<Cow<'a, str>>,
fill: impl Into<Cow<'a, str>>,
easing: impl Into<Cow<'a, str>>,
) -> AnimationEffectBuilder<'a>
pub fn builder( delay: f64, end_delay: f64, iteration_start: f64, duration: f64, direction: impl Into<Cow<'a, str>>, fill: impl Into<Cow<'a, str>>, easing: impl Into<Cow<'a, str>>, ) -> AnimationEffectBuilder<'a>
Creates a builder for this type with the required parameters:
delay:AnimationEffect’s delay.end_delay:AnimationEffect’s end delay.iteration_start:AnimationEffect’s iteration start.duration:AnimationEffect’s iteration duration. Milliseconds for time based animations and percentage [0 - 100] for scroll driven animations (i.e. when viewOrScrollTimeline exists).direction:AnimationEffect’s playback direction.fill:AnimationEffect’s fill mode.easing:AnimationEffect’s timing function.
Sourcepub fn iteration_start(&self) -> f64
pub fn iteration_start(&self) -> f64
‘AnimationEffect’’s iteration start.
Sourcepub fn iterations(&self) -> Option<f64>
pub fn iterations(&self) -> Option<f64>
‘AnimationEffect’’s iterations. Omitted if the value is infinite.
Sourcepub fn duration(&self) -> f64
pub fn duration(&self) -> f64
‘AnimationEffect’’s iteration duration. Milliseconds for time based animations and percentage [0 - 100] for scroll driven animations (i.e. when viewOrScrollTimeline exists).
Sourcepub fn backend_node_id(&self) -> Option<&BackendNodeId>
pub fn backend_node_id(&self) -> Option<&BackendNodeId>
‘AnimationEffect’’s target node.
Sourcepub fn keyframes_rule(&self) -> Option<&KeyframesRule<'a>>
pub fn keyframes_rule(&self) -> Option<&KeyframesRule<'a>>
‘AnimationEffect’’s keyframes.
Trait Implementations§
Source§impl<'a> Clone for AnimationEffect<'a>
impl<'a> Clone for AnimationEffect<'a>
Source§fn clone(&self) -> AnimationEffect<'a>
fn clone(&self) -> AnimationEffect<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AnimationEffect<'a>
impl<'a> Debug for AnimationEffect<'a>
Source§impl<'a> Default for AnimationEffect<'a>
impl<'a> Default for AnimationEffect<'a>
Source§fn default() -> AnimationEffect<'a>
fn default() -> AnimationEffect<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for AnimationEffect<'a>
impl<'de, 'a> Deserialize<'de> for AnimationEffect<'a>
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for AnimationEffect<'a>
impl<'a> RefUnwindSafe for AnimationEffect<'a>
impl<'a> Send for AnimationEffect<'a>
impl<'a> Sync for AnimationEffect<'a>
impl<'a> Unpin for AnimationEffect<'a>
impl<'a> UnsafeUnpin for AnimationEffect<'a>
impl<'a> UnwindSafe for AnimationEffect<'a>
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