🏠 New in High Baseline Support: Scroll methods on elements

March 16, 2023

caniuse · mdn · spec

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().

Source features