monks/perspective_origin

The perspective-origin CSS property determines the position at which the viewer is looking. It is used as the vanishing point by the {{cssxref(“perspective”)}} property.

Values

pub const bottom: #(String, String)
pub const center: #(String, String)

center value of perspective-origin

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const left: #(String, String)

left value of perspective-origin

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

length value of perspective-origin

pub fn raw(value: String) -> #(String, String)

Enter a raw string value for perspective-origin

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const right: #(String, String)
  • y-position - : Indicates the position of the ordinate of the vanishing point. It can have one of the following values:
pub const top: #(String, String)

top value of perspective-origin

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

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

Search Document