pub struct Animation {
pub id: String,
pub name: String,
pub pausedState: bool,
pub playState: String,
pub playbackRate: f64,
pub startTime: f64,
pub currentTime: f64,
pub type_: String,
pub source: Option<AnimationEffect>,
pub cssId: Option<String>,
pub viewOrScrollTimeline: Option<ViewOrScrollTimeline>,
}Expand description
Animation instance.
Fields§
§id: String‘Animation’’s id.
name: String‘Animation’’s name.
pausedState: bool‘Animation’’s internal paused state.
playState: String‘Animation’’s play state.
playbackRate: f64‘Animation’’s playback rate.
startTime: f64‘Animation’’s start time. Milliseconds for time based animations and percentage [0 - 100] for scroll driven animations (i.e. when viewOrScrollTimeline exists).
currentTime: f64‘Animation’’s current time.
type_: StringAnimation type of ‘Animation’.
source: Option<AnimationEffect>‘Animation’’s source animation node.
cssId: Option<String>A unique ID for ‘Animation’ representing the sources that triggered this CSS animation/transition.
viewOrScrollTimeline: Option<ViewOrScrollTimeline>View or scroll timeline
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Animation
impl<'de> Deserialize<'de> for Animation
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 Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnsafeUnpin for Animation
impl UnwindSafe for Animation
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