Type Alias style::values::computed::animation::AnimationDuration

source ·
pub type AnimationDuration = GenericAnimationDuration<Time>;
Expand description

A computed value for the animation-duration property.

Aliased Type§

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.