monks/offset

The offset CSS shorthand property sets all the properties required for animating an element along a defined path. The offset properties together help to define an offset transform, a transform that aligns a point in an element (offset-anchor) to an offset position (offset-position) on a path (offset-path) at various points along the path (offset-distance) and optionally rotates the element (offset-rotate) to follow the direction of the path.

Early versions of the spec called this property motion.

Values

pub const auto_: #(String, String)

auto value of offset

pub const border_box: #(String, String)

border-box value of offset

pub const bottom: #(String, String)

bottom value of offset

pub const center: #(String, String)

center value of offset

pub const content_box: #(String, String)

content-box value of offset

pub const fill_box: #(String, String)

fill-box value of offset

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

left value of offset

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

length value of offset

pub const none: #(String, String)

none value of offset

pub const normal: #(String, String)

normal value of offset

pub const padding_box: #(String, String)

padding-box value of offset

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

Enter a raw string value for offset

pub const reverse: #(String, String)

reverse value of offset

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const right: #(String, String)

right value of offset

pub const stroke_box: #(String, String)

stroke-box value of offset

pub const top: #(String, String)

top value of offset

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

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

pub const view_box: #(String, String)

view-box value of offset

Search Document