Scrollable

Modifiers

ClassDescription
scrollable-horizontalCreates a horizontal scrollable element
scrollable-verticalCreates a vertical scrollable element
scrollable-prefers-horizontalUse scrollableHorizontal script to change vertical mousewheel scrolls into horizontal scrolls with finese
scrollable-nosnapDisables CSS Scroll Snap

CSS Variables

VariableDefaultPossible valuesDescription
--snap-typeproximitynone
proximity
mandatory
Value for scroll-snap-type. Determines strictness of the snap
--snap-alignstartstart
center
end
Value for css-snap-align. Determines location to snap to.
--scroll-margin
0Any length valueAmount of space between the edge of the container and the snap point
--scroll-snap-delay1000NumberTime (in ms) to wait before activating CSS Scroll Snap after user scrolls. Used for the scrollableHorizontal script.