pub type TransformOrigin = GenericTransformOrigin<LengthPercentage, LengthPercentage, Length>;
Expand description
The computed value of a CSS <transform-origin>
Aliased Type§
struct TransformOrigin {
pub horizontal: LengthPercentage,
pub vertical: LengthPercentage,
pub depth: CSSPixelLength,
}
Fields§
§horizontal: LengthPercentage
The horizontal origin.
vertical: LengthPercentage
The vertical origin.
depth: CSSPixelLength
The depth.
Implementations§
source§impl TransformOrigin
impl TransformOrigin
sourcepub fn initial_value() -> Self
pub fn initial_value() -> Self
Returns the initial computed value for transform-origin
.