pub enum InViewAmount {
Some,
All,
Fraction(f32),
}Expand description
How much of the element must be visible before its inView animation
triggers.
Serializes to the data-motion-amount attribute; mirrors Motion’s
inView amount option ("some" | "all" | number).
Variants§
Some
Trigger when any part of the element enters the viewport (Motion’s default).
All
Trigger only when the whole element is visible.
Fraction(f32)
Trigger when this fraction (0.0–1.0) of the element is visible. Values outside the range are clamped.
Trait Implementations§
Source§impl Clone for InViewAmount
impl Clone for InViewAmount
impl Copy for InViewAmount
Source§impl Debug for InViewAmount
impl Debug for InViewAmount
Source§impl From<f32> for InViewAmount
impl From<f32> for InViewAmount
Source§impl PartialEq for InViewAmount
impl PartialEq for InViewAmount
impl StructuralPartialEq for InViewAmount
Auto Trait Implementations§
impl Forget for InViewAmount
impl Freeze for InViewAmount
impl RefUnwindSafe for InViewAmount
impl Send for InViewAmount
impl Sync for InViewAmount
impl Unpin for InViewAmount
impl UnsafeUnpin for InViewAmount
impl UnwindSafe for InViewAmount
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
Open a deferred
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.