jQuery ScrollTo

Tagged with jQuery Javascript

Language: JavaScript

View as text

$('body').animate({
  scrollTop: $('#target').offset().top
});
Original snippet written by Aaron Godin
Last updated at 09:29 AM on Aug 08, 2010

SnippetStash costs money to host and develop. The service is free for everyone to use
but if you found it useful please consider making a small donation.