pub struct AnimationBuilder { /* private fields */ }Expand description
Builder for Animation.
Implementations§
Source§impl AnimationBuilder
impl AnimationBuilder
Sourcepub fn paused_state<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn paused_state<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Animation’s internal paused state.
Sourcepub fn play_state<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn play_state<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Animation’s play state.
Sourcepub fn playback_rate<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn playback_rate<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Animation’s playback rate.
Sourcepub fn start_time<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn start_time<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Animation’s start time.
Milliseconds for time based animations and
percentage [0 - 100] for scroll driven animations
(i.e. when viewOrScrollTimeline exists).
Sourcepub fn current_time<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn current_time<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Animation’s current time.
Sourcepub fn type<VALUE: Into<AnimationType>>(&mut self, value: VALUE) -> &mut Self
pub fn type<VALUE: Into<AnimationType>>(&mut self, value: VALUE) -> &mut Self
Animation type of Animation.
Sourcepub fn source<VALUE: Into<AnimationEffect>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn source<VALUE: Into<AnimationEffect>>( &mut self, value: VALUE, ) -> &mut Self
Animation’s source animation node.
Sourcepub fn css_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn css_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A unique ID for Animation representing the sources that triggered this CSS
animation/transition.
Sourcepub fn view_or_scroll_timeline<VALUE: Into<ViewOrScrollTimeline>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn view_or_scroll_timeline<VALUE: Into<ViewOrScrollTimeline>>( &mut self, value: VALUE, ) -> &mut Self
View or scroll timeline
Trait Implementations§
Source§impl Clone for AnimationBuilder
impl Clone for AnimationBuilder
Source§fn clone(&self) -> AnimationBuilder
fn clone(&self) -> AnimationBuilder
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 AnimationBuilder
impl RefUnwindSafe for AnimationBuilder
impl Send for AnimationBuilder
impl Sync for AnimationBuilder
impl Unpin for AnimationBuilder
impl UnsafeUnpin for AnimationBuilder
impl UnwindSafe for AnimationBuilder
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