Type Alias style::values::computed::transform::Translate

source ·
pub type Translate = GenericTranslate<LengthPercentage, Length>;
Expand description

A computed CSS translate

Aliased Type§

enum Translate {
    None,
    Translate(LengthPercentage, LengthPercentage, CSSPixelLength),
}

Variants§

§

None

‘none’

§

Translate(LengthPercentage, LengthPercentage, CSSPixelLength)

[ ? ]?

Implementations§

Trait Implementations§

source§

impl Animate for Translate

source§

fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>

Animate a value towards another one, given an animation procedure.
source§

impl ComputeSquaredDistance for Translate

source§

fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>

Computes the squared distance between two animatable values.