pub enum Preset {
Show 15 variants
FadeUp,
FadeDown,
FadeLeft,
FadeRight,
Fade,
Scale,
ZoomIn,
ZoomOut,
SlideLeft,
SlideRight,
SlideUp,
SlideDown,
RotateIn,
BlurIn,
Parallax,
}Expand description
An animation preset, mirroring the keyframes in assets/init.js.
Variants§
FadeUp
Fade in while rising 24px.
FadeDown
Fade in while sinking 24px.
FadeLeft
Fade in while drifting 24px left.
FadeRight
Fade in while drifting 24px right.
Fade
Fade in place.
Scale
Fade in while scaling from 0.94.
ZoomIn
Fade in while zooming from 0.8 scale.
ZoomOut
Fade in while settling from 1.15 scale.
SlideLeft
Fade in while sliding 32px from the right.
SlideRight
Fade in while sliding 32px from the left.
SlideUp
Fade in while rising 32px from below.
SlideDown
Fade in while sinking 32px from above.
RotateIn
Fade in while straightening from -8 degrees.
BlurIn
Fade in while de-blurring from 8px.
Parallax
Scroll-linked drift (see Motion::parallax).
Trait Implementations§
impl Copy for Preset
impl Eq for Preset
impl StructuralPartialEq for Preset
Auto Trait Implementations§
impl Forget for Preset
impl Freeze for Preset
impl RefUnwindSafe for Preset
impl Send for Preset
impl Sync for Preset
impl Unpin for Preset
impl UnsafeUnpin for Preset
impl UnwindSafe for Preset
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.