pub struct AnimationEffectBuilder { /* private fields */ }Expand description
Builder for AnimationEffect.
Implementations§
Source§impl AnimationEffectBuilder
impl AnimationEffectBuilder
Sourcepub fn delay<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn delay<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
AnimationEffect’s delay.
Sourcepub fn end_delay<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn end_delay<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
AnimationEffect’s end delay.
Sourcepub fn iteration_start<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn iteration_start<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
AnimationEffect’s iteration start.
Sourcepub fn iterations<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn iterations<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
AnimationEffect’s iterations. Omitted if the value is infinite.
Sourcepub fn duration<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn duration<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
AnimationEffect’s iteration duration.
Milliseconds for time based animations and
percentage [0 - 100] for scroll driven animations
(i.e. when viewOrScrollTimeline exists).
Sourcepub fn direction<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn direction<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
AnimationEffect’s playback direction.
Sourcepub fn fill<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn fill<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
AnimationEffect’s fill mode.
Sourcepub fn backend_node_id<VALUE: Into<BackendNodeId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn backend_node_id<VALUE: Into<BackendNodeId>>( &mut self, value: VALUE, ) -> &mut Self
AnimationEffect’s target node.
Sourcepub fn keyframes_rule<VALUE: Into<KeyframesRule>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn keyframes_rule<VALUE: Into<KeyframesRule>>( &mut self, value: VALUE, ) -> &mut Self
AnimationEffect’s keyframes.
Sourcepub fn easing<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn easing<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
AnimationEffect’s timing function.
Sourcepub fn build(&self) -> Result<AnimationEffect, AnimationEffectBuilderError>
pub fn build(&self) -> Result<AnimationEffect, AnimationEffectBuilderError>
Trait Implementations§
Source§impl Clone for AnimationEffectBuilder
impl Clone for AnimationEffectBuilder
Source§fn clone(&self) -> AnimationEffectBuilder
fn clone(&self) -> AnimationEffectBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AnimationEffectBuilder
impl RefUnwindSafe for AnimationEffectBuilder
impl Send for AnimationEffectBuilder
impl Sync for AnimationEffectBuilder
impl Unpin for AnimationEffectBuilder
impl UnsafeUnpin for AnimationEffectBuilder
impl UnwindSafe for AnimationEffectBuilder
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