monks/scroll_behavior

The scroll-behavior CSS property sets the behavior for a scrolling box when scrolling is triggered by the navigation or CSSOM scrolling APIs.

Values

pub const auto_: #(String, String)
  • : The scrolling box scrolls instantly.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for scroll-behavior

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const smooth: #(String, String)
  • : The scrolling box scrolls in a smooth fashion using a user-agent-defined easing function over a user-agent-defined period of time. User agents should follow platform conventions, if any.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document