Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js scrollto

element.scrollTo(x, y);
window.scrollTo(x, y);
element.scrollTo({
  top: 100,
  left: 100,
  behavior: 'smooth'
});
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #scrollto
ADD COMMENT
Topic
Name
4+8 =