Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery scroll to top

$("my-element").click(function () {
  $("html, body").animate({
    scrollTop: 0
  }, 1000)
})
 
PREVIOUS NEXT
Tagged: #jquery #scroll #top
ADD COMMENT
Topic
Name
2+1 =