The scrollBy() method of the Element interface scrolls an element by the given amount.
scrollBy()
MDN Reference
Optional
The
scrollBy()method of the Element interface scrolls an element by the given amount.MDN Reference