Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

scrollto is not a function javascript

$("button").on('click', function() {
	window.scrollTo({
    top: $('#intro').offset().top,
    left: 0,
    behavior: 'smooth'
  })
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scrollto #function #javascript
ADD COMMENT
Topic
Name
3+9 =