Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery scroll to id

  $('html, body').animate(
    {
      scrollTop: $($(this).attr('href')).offset().top,
    },
    500,
    'linear'
  )
Source by www.taniarascia.com #
 
PREVIOUS NEXT
Tagged: #jquery #scroll #id
ADD COMMENT
Topic
Name
2+5 =