Scroll to div using JQuery Animate

Here is the small piece of code, which you can use
$("#scroll-btn").click(function (){
  $('html, body').animate({
    scrollTop: $(".area").offset().top
    }, 800);
  return false;
});

Comments

Popular posts from this blog

Overview of Natural Language Processing (NLP)

Basic XML Questions and Answers