monks/scroll_snap_align

The scroll-snap-align property specifies the box’s snap position as an alignment of its snap area (as the {{glossary(“alignment subject”)}}) within its snap container’s snap port (as the {{glossary(“alignment container”)}}).

Values

pub const center: #(String, String)
  • : The center alignment of this box’s scroll snap area, within the scroll container’s snapport is a snap position in this axis.
pub const end: #(String, String)
  • : The end alignment of this box’s scroll snap area, within the scroll container’s snapport is a snap position in this axis.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const none: #(String, String)
  • : The box does not define a snap position in that axis.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for scroll-snap-align

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const start: #(String, String)
  • : The start alignment of this box’s scroll snap area, within the scroll container’s snapport is a snap position in this axis.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document