Type Alias AnimationDuration

Source
pub type AnimationDuration = GenericAnimationDuration<Time>;
Expand description

A specified value for the animation-duration property.

Aliased Type§

#[repr(C, u8)]
pub enum AnimationDuration { Auto, Time(Time), }

Variants§

§

Auto

The initial value. However, we serialize this as 0s if the preference is disabled.

§

Time(Time)

The time value, <time [0s,∞]>.

Trait Implementations§

Source§

impl Parse for AnimationDuration

Source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more