Overscroll Behavior
Set the browser's scroll overflow behavior.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
Auto
Use the ob-a utility to allow scroll overflow behavior to propagate to parent elements.
<div class="ob-a ..."> ...</div>Contain
Use the ob-c utility to prevent scroll overflow behavior from propagating to parent elements, but allow scroll bounce effects within the element.
<div class="ob-c ..."> ...</div>None
Use the ob-n utility to prevent scroll overflow behavior from propagating to parent elements & disable scroll bounce effects.
<div class="ob-n ..."> ...</div>Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
sm:ob-[value]Small≥640px
md:ob-[value]Medium≥768px
lg:ob-[value]Large≥1024px
xxl:ob-[value]Extra Large≥1536px
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]