pub enum Animation {
Show 17 variants
None,
Spin,
Ping,
Pulse,
Bounce,
FadeIn,
FadeOut,
SlideInLeft,
SlideInRight,
SlideInTop,
SlideInBottom,
ZoomIn,
ZoomOut,
Wobble,
Shake,
Flip,
Heartbeat,
}
Expand description
Animation values
Variants§
None
No animation
Spin
Spin animation
Ping
Ping animation
Pulse
Pulse animation
Bounce
Bounce animation
FadeIn
Fade in animation
FadeOut
Fade out animation
SlideInLeft
Slide in from left
SlideInRight
Slide in from right
SlideInTop
Slide in from top
SlideInBottom
Slide in from bottom
ZoomIn
Zoom in animation
ZoomOut
Zoom out animation
Wobble
Wobble animation
Shake
Shake animation
Flip
Flip animation
Heartbeat
Heartbeat animation
Implementations§
Source§impl Animation
impl Animation
pub fn to_class_name(&self) -> String
pub fn to_css_value(&self) -> String
Sourcepub fn all_values() -> Vec<Animation>
pub fn all_values() -> Vec<Animation>
Get all available animation values
Sourcepub fn is_infinite(&self) -> bool
pub fn is_infinite(&self) -> bool
Check if animation is an infinite animation
Sourcepub fn duration_ms(&self) -> u32
pub fn duration_ms(&self) -> u32
Get animation duration in milliseconds
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
impl Copy for Animation
impl Eq for Animation
impl StructuralPartialEq for Animation
Auto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin 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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.