Answers for "jquery smooth scrool"

0

jquery smooth scrool

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

  $('html, body').animate(
    {
      scrollTop: $($(this).attr('href')).offset().top,
    },
    500,
    'linear'
  )
})
Posted by: Guest on June-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language