monks/perspective

The perspective CSS property determines the distance between the z=0 plane and the user in order to give a 3D-positioned element some perspective.

Values

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

length value of perspective

pub const none: #(String, String)
  • : Indicates that no perspective transform is to be applied.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for perspective

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 perspective. It will be wrapped in var() and have -- prepended.

Search Document