BASELINE NowYouCanUse.com
Widely Available Scrolling
id: scroll-elements

Scroll methods on elements

The scroll() and scrollBy() methods change the scroll position of overflow content within an element. Similar to setting scrollTop and scrollLeft properties, but with options setting whether the scroll should animate smoothly or jump. Note that scrollTo() is an alias for scroll().
Baseline Status: Achieved Widely Available on Mar 16, 2023 (Cross-browser Newly Available since Sep 16, 2020).
Desktop Browser Engine Support
Google Chrome
61
Supported
Mozilla Firefox
36
Supported
Apple Safari
14
Supported
Microsoft Edge
79
Supported
Mobile Browser Engine Support
Chrome Android
61
Firefox Android
36
Safari iOS
14
Specifications and References