Created
March 30, 2014 19:36
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('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