/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
//! Computed values for properties related to animations and transitions
usecrate::values::computed::{Context, LengthPercentage, Time, ToComputedValue}; usecrate::values::generics::animation as generics; usecrate::values::specified::animation as specified; usecrate::values::CSSFloat; use std::fmt::{self, Write}; use style_traits::{CssWriter, ToCss};
/// A computed value for the `animation-duration` property. pubtype AnimationDuration = generics::GenericAnimationDuration<Time>;
impl AnimationDuration { /// Returns the amount of seconds this time represents. #[inline] pubfn seconds(&self) -> CSSFloat { match *self { Self::Auto => 0.0, Self::Time(ref t) => t.seconds(),
}
}
}
/// A computed value for the `animation-iteration-count` property. #[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, ToResolvedValue, ToShmem)] #[repr(C)] pubstruct AnimationIterationCount(pub f32);
impl ToComputedValue for specified::AnimationIterationCount { type ComputedValue = AnimationIterationCount;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.