Overscroll Behavior

Set the browser's scroll overflow behavior.

Limited availability

This feature does not work in some of the most widely-used browsers.

Chrome
Edge
Firefox
Safari

Overscroll Behavior

ob-auto
overscroll-behavior: auto;
ob-c
overscroll-behavior: contain;
ob-none
overscroll-behavior: none;

Overscroll Behavior Block

obb-auto
overscroll-behavior-block: auto;
obb-c
overscroll-behavior-block: contain;
obb-none
overscroll-behavior-block: none;

Overscroll Behavior Inline

obi-auto
overscroll-behavior-inline: auto;
obi-c
overscroll-behavior-inline: contain;
obi-none
overscroll-behavior-inline: none;

Overscroll Behavior X

obx-auto
overscroll-behavior-x: auto;
obx-c
overscroll-behavior-x: contain;
obx-none
overscroll-behavior-x: none;

Overscroll Behavior Y

oby-auto
overscroll-behavior-y: auto;
oby-c
overscroll-behavior-y: contain;
oby-none
overscroll-behavior-y: none;

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

@sm:ob-(value)
Small640px
@md:ob-(value)
Medium768px
@lg:ob-(value)
Large1024px
@xxl:ob-(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:ob-(value)