Overscroll Behavior X

Set the browser's scroll overflow behavior on the horizontal axis.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

Auto

Use the obx-a utility to allow scroll overflow behavior on the horizontal axis.

<div class="obx-a ...">
...
</div>

Contain

Use the obx-c utility to contain scroll overflow behavior on the horizontal axis.

<div class="obx-c ...">
...
</div>

None

Use the obx-n utility to disable scroll overflow behavior on the horizontal axis.

<div class="obx-n ...">
...
</div>

Responsiveness

Use breakpoint prefixes to target different screen sizes.

sm:obx-[value]
Small640px
md:obx-[value]
Medium768px
lg:obx-[value]
Large1024px
xxl:obx-[value]
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:obx-[value]