Overscroll Behavior Y
Set the browser's scroll overflow behavior on the vertical axis.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
Auto
Use the oby-a utility to allow scroll overflow behavior on the vertical axis.
<div class="oby-a ..."> ...</div>Contain
Use the oby-c utility to contain scroll overflow behavior on the vertical axis.
<div class="oby-c ..."> ...</div>None
Use the oby-n utility to disable scroll overflow behavior on the vertical axis.
<div class="oby-n ..."> ...</div>Responsiveness
Use breakpoint prefixes to target different screen sizes.
sm:oby-[value]Small≥640px
md:oby-[value]Medium≥768px
lg:oby-[value]Large≥1024px
xxl:oby-[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:oby-[value]