Type Alias TransformOrigin

Source
pub type TransformOrigin = GenericTransformOrigin<LengthPercentage, LengthPercentage, Length>;
Expand description

The computed value of a CSS <transform-origin>

Aliased Type§

#[repr(C)]
pub 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.