pub struct ViewOrScrollTimelineBuilder { /* private fields */ }Implementations§
Source§impl ViewOrScrollTimelineBuilder
impl ViewOrScrollTimelineBuilder
Sourcepub fn source_node_id(self, source_node_id: BackendNodeId) -> Self
pub fn source_node_id(self, source_node_id: BackendNodeId) -> Self
Scroll container node
Sourcepub fn start_offset(self, start_offset: f64) -> Self
pub fn start_offset(self, start_offset: f64) -> Self
Represents the starting scroll position of the timeline as a length offset in pixels from scroll origin.
Sourcepub fn end_offset(self, end_offset: f64) -> Self
pub fn end_offset(self, end_offset: f64) -> Self
Represents the ending scroll position of the timeline as a length offset in pixels from scroll origin.
Sourcepub fn subject_node_id(self, subject_node_id: BackendNodeId) -> Self
pub fn subject_node_id(self, subject_node_id: BackendNodeId) -> Self
The element whose principal box’s visibility in the scrollport defined the progress of the timeline. Does not exist for animations with ScrollTimeline
pub fn build(self) -> ViewOrScrollTimeline
Auto Trait Implementations§
impl Freeze for ViewOrScrollTimelineBuilder
impl RefUnwindSafe for ViewOrScrollTimelineBuilder
impl Send for ViewOrScrollTimelineBuilder
impl Sync for ViewOrScrollTimelineBuilder
impl Unpin for ViewOrScrollTimelineBuilder
impl UnsafeUnpin for ViewOrScrollTimelineBuilder
impl UnwindSafe for ViewOrScrollTimelineBuilder
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