Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

smooth scroll button by element id

$('#myButton').click(function(event) {
     event.preventDefault();
   $.scrollTo($('#myDiv'), 1000);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #smooth #scroll #button #element #id
ADD COMMENT
Topic
Name
9+6 =