pub type Translate = GenericTranslate<LengthPercentage, Length>;
Expand description
A computed CSS translate
Aliased Type§
enum Translate {
None,
Translate(LengthPercentage, LengthPercentage, CSSPixelLength),
}
Variants§
Implementations§
Trait Implementations§
source§impl ComputeSquaredDistance for Translate
impl ComputeSquaredDistance for Translate
source§fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
Computes the squared distance between two animatable values.