monks/transform

The transform CSS property lets you rotate, scale, skew, or translate an element. It modifies the coordinate space of the CSS visual formatting model.

If the property has a value different from none, a stacking context will be created. In that case, the element will act as a containing block for any position: fixed; or position: absolute; elements that it contains.

You can also use the individual transform properties: {{cssxref(‘translate’)}}, {{cssxref(‘rotate’)}}, and {{cssxref(‘scale’)}}. These properties are applied in the order: translate, rotate, scale, and finally transform.

Only transformable elements can be transformed. That is, all elements whose layout is governed by the CSS box model except for: non-replaced inline boxes, table-column boxes, and table-column-group boxes.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of transform

pub const none: #(String, String)
  • : Specifies that no transform should be applied.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for transform

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for transform. It will be wrapped in var() and have -- prepended.

Search Document