Type Alias AnimationDuration

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

A computed 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,∞]>.

Implementations§

Source§

impl AnimationDuration

Source

pub fn seconds(&self) -> CSSFloat

Returns the amount of seconds this time represents.

Trait Implementations§

Source§

impl ToResolvedValue for AnimationDuration

Source§

type ResolvedValue = GenericAnimationDuration<Time>

The resolved value type we’re going to be converted to.
Source§

fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue

Convert a resolved value to a resolved value.
Source§

fn from_resolved_value(value: Self::ResolvedValue) -> Self

Convert a resolved value to resolved value form.