Browse documentation
Reference / Layout
Overscroll behavior
Control how reaching the end of a scrolling panel affects scrolling in its parent.
Working example
Fold the proof along the spine.
Check the margins at each corner.
Wrap the edition in tissue.
Contain the vertical axis on a nested panel when wheel or touch scrolling should stop at the end of its notes.
<div tabindex="0" role="region" aria-label="Packing notes"
class="h-20 overflow-y-auto overscroll-y-contain border p-3">
<p>Fold the proof along the spine.</p>
<p class="my-4">Check the margins at each corner.</p>
<p>Wrap the edition in tissue.</p>
</div>Class reference
| Class | CSS declarations |
|---|---|
overscroll-auto | overscroll-behavior: auto; |
overscroll-contain | overscroll-behavior: contain; |
overscroll-none | overscroll-behavior: none; |
overscroll-x-contain | overscroll-behavior-x: contain; |
overscroll-y-contain | overscroll-behavior-y: contain; |
View full generated CSS
.overscroll-auto {
overscroll-behavior: auto;
}
.overscroll-contain {
overscroll-behavior: contain;
}
.overscroll-none {
overscroll-behavior: none;
}
.overscroll-x-contain {
overscroll-behavior-x: contain;
}
.overscroll-y-contain {
overscroll-behavior-y: contain;
}