#[non_exhaustive]pub enum AnimationFillMode {
None,
Forwards,
Backwards,
Both,
}Expand description
Supported values for animation-fill-mode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Does not apply keyframe values outside the active interval.
Forwards
Keeps the final keyframe value after completion.
Backwards
Applies the starting keyframe value during delay.
Both
Applies both backwards and forwards fill behavior.
Trait Implementations§
Source§impl Clone for AnimationFillMode
impl Clone for AnimationFillMode
Source§fn clone(&self) -> AnimationFillMode
fn clone(&self) -> AnimationFillMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnimationFillMode
Source§impl Debug for AnimationFillMode
impl Debug for AnimationFillMode
Source§impl Default for AnimationFillMode
impl Default for AnimationFillMode
Source§fn default() -> AnimationFillMode
fn default() -> AnimationFillMode
Returns the “default value” for a type. Read more
Source§impl<'i> FromCss<'i> for AnimationFillMode
impl<'i> FromCss<'i> for AnimationFillMode
Source§const VALID_TOKENS: &'static [CssToken]
const VALID_TOKENS: &'static [CssToken]
Returns the list of valid CSS tokens for this type.
Source§fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
Parses the type from a
Parser instance.Source§fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
Helper function to parse the type from a string.
Source§const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
Message template used when building parse errors for this type.
Source§impl PartialEq for AnimationFillMode
impl PartialEq for AnimationFillMode
Source§fn eq(&self, other: &AnimationFillMode) -> bool
fn eq(&self, other: &AnimationFillMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnimationFillMode
Auto Trait Implementations§
impl Freeze for AnimationFillMode
impl RefUnwindSafe for AnimationFillMode
impl Send for AnimationFillMode
impl Sync for AnimationFillMode
impl Unpin for AnimationFillMode
impl UnsafeUnpin for AnimationFillMode
impl UnwindSafe for AnimationFillMode
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