Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery smooth scrool

('a[href*="#"]').on('click', function (e) {
  e.preventDefault()

  $('html, body').animate(
    {
      scrollTop: $($(this).attr('href')).offset().top,
    },
    500,
    'linear'
  )
})
 
PREVIOUS NEXT
Tagged: #jquery #smooth #scrool
ADD COMMENT
Topic
Name
8+5 =