pub struct ScrollTrigger {
pub threshold: f64,
pub repeat: bool,
pub element_id: String,
}
Expand description
Scroll trigger configuration
Fields§
§threshold: f64
Trigger threshold (0.0 to 1.0)
repeat: bool
Whether trigger should repeat
element_id: String
Element ID to observe
Implementations§
Source§impl ScrollTrigger
impl ScrollTrigger
Sourcepub fn with_threshold(self, threshold: f64) -> Self
pub fn with_threshold(self, threshold: f64) -> Self
Set threshold
Sourcepub fn with_repeat(self, repeat: bool) -> Self
pub fn with_repeat(self, repeat: bool) -> Self
Set repeat
Trait Implementations§
Source§impl Clone for ScrollTrigger
impl Clone for ScrollTrigger
Source§fn clone(&self) -> ScrollTrigger
fn clone(&self) -> ScrollTrigger
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 moreSource§impl Debug for ScrollTrigger
impl Debug for ScrollTrigger
Auto Trait Implementations§
impl Freeze for ScrollTrigger
impl RefUnwindSafe for ScrollTrigger
impl Send for ScrollTrigger
impl Sync for ScrollTrigger
impl Unpin for ScrollTrigger
impl UnwindSafe for ScrollTrigger
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