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§
Trait Implementations§
source§impl ToResolvedValue for AnimationDuration
impl ToResolvedValue for AnimationDuration
§type ResolvedValue = GenericAnimationDuration<Time>
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
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
fn from_resolved_value(value: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.