pub type Transform = GenericTransform<TransformOperation>;
Expand description
A computed CSS transform
Aliased Type§
struct Transform(pub OwnedSlice<GenericTransformOperation<Angle, f32, CSSPixelLength, i32, LengthPercentage>>);
Fields§
§0: OwnedSlice<GenericTransformOperation<Angle, f32, CSSPixelLength, i32, LengthPercentage>>
Trait Implementations§
source§impl ComputeSquaredDistance for Transform
impl ComputeSquaredDistance for Transform
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.
source§impl ToAnimatedZero for Transform
impl ToAnimatedZero for Transform
source§fn to_animated_zero(&self) -> Result<Self, ()>
fn to_animated_zero(&self) -> Result<Self, ()>
Returns a value that, when added with an underlying value, will produce the underlying
value. This is used for SMIL animation’s “by-animation” where SMIL first interpolates from
the zero value to the ‘by’ value, and then adds the result to the underlying value. Read more