Type Alias style::values::computed::transform::TransformOrigin

source ·
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

source

pub fn initial_value() -> Self

Returns the initial computed value for transform-origin.