Skip to content

Instantly share code, notes, and snippets.

@wadmiraal
Created December 5, 2013 14:29
Show Gist options
  • Save wadmiraal/7805960 to your computer and use it in GitHub Desktop.
Save wadmiraal/7805960 to your computer and use it in GitHub Desktop.
JQuery animate scrolling to an element. Smooth scroll. From http://www.creativejuiz.fr/blog/tutoriels/jquery-effet-smooth-scroll-defilement-fluide
$('html, body').animate({ scrollTop: $('#some-element').offset().top }, 'slow');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment