Scroll Behavior

Style syntax for setting the scrolling behavior for a scrolling box.

🚧This page is still under construction and some content may not be complete.

Overview [sr-only]

scroll-behavior:valuescroll-behavior: value
scroll-behavior:autoscroll-behavior: auto
scroll-behavior:smoothscroll-behavior: smooth

Conditionally apply

Apply styles in different states using selectors, media queries, etc.

<div class="scroll-behavior:auto:hover scroll-behavior:auto@sm scroll-behavior:auto@dark scroll-behavior:auto@print"></div>
Overscroll Behavior

Style syntax for setting what a browser does when reaching the boundary of a scrolling area.

Scroll Margin

Style syntax for setting the scroll margin of an element.

MIT License © Aoyue Design LLC.