Skip to content

Instantly share code, notes, and snippets.

@charliecm
Created March 30, 2014 19:36
Show Gist options
  • Save charliecm/9878374 to your computer and use it in GitHub Desktop.
Save charliecm/9878374 to your computer and use it in GitHub Desktop.
Paste this in the console so that the page smooth scrolls by viewport height. Good for testing out websites with parallax effects that is broken into sections.
$('body').bind('click', function() { $('body,html').stop().animate({ scrollTop: $('body').scrollTop() + $('body').height() }, 1000); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment