monks/offset_position
The offset-position CSS property defines the initial position of an element along a path. This property is typically used in combination with the {{cssxref(“offset-path”)}} property to create a motion effect. The value of offset-position determines where the element gets placed initially for moving along an offset path if an offset-path function such as {{cssxref(“basic-shape/path”, “path()”)}} does not specify its own starting position.
The offset-position property is part of a motion system based on {{cssxref(“offset”)}} constituent properties, including {{cssxref(“offset-anchor”)}}, {{cssxref(“offset-distance”)}}, and offset-path. These properties work together to create various motion effects along a path.
Values
pub const auto_: #(String, String)
- : Indicates that the offset starting position is the top-left corner of the element’s box.
pub fn length(value: monks_of_style.Length) -> #(String, String)
length value of offset-position
pub const normal: #(String, String)
- : Indicates that the element does not have an offset starting position and places the element at
50% 50%of the containing block. This is the default value.
pub const revert_layer: #(String, String)