Type Definition style::values::computed::transform::TransformOperation
[−]
[src]
type TransformOperation = GenericTransformOperation<Angle, Number, Length, Integer, LengthOrNumber, LengthOrPercentage, LengthOrPercentageOrNumber>;
A single operation in a computed CSS transform
Methods
impl TransformOperation
[src]
pub fn to_translate_3d(&self) -> Self
[src]
Convert to a Translate3D.
Must be called on a Translate function
pub fn to_scale_3d(&self) -> Self
[src]
Convert to a Scale3D.
Must be called on a Scale function
Trait Implementations
impl ToAnimatedZero for TransformOperation
[src]
Build an equivalent 'identity transform function list' based on an existing transform list. http://dev.w3.org/csswg/css-transforms/#none-transform-animation
fn to_animated_zero(&self) -> Result<Self, ()>
[src]
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
impl Animate for ComputedTransformOperation
[src]
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>
[src]
Animate a value towards another one, given an animation procedure.
impl ComputeSquaredDistance for ComputedTransformOperation
[src]
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
[src]
Computes the squared distance between two animatable values.