Last active
January 19, 2016 11:26
-
-
Save Korveld/63f64dd830fbd2cf610d to your computer and use it in GitHub Desktop.
Scroll2object
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
// Scroll to object | |
$("#arrow-down").on('click', function(e) { | |
$('html, body').animate({ | |
scrollTop: $("#descr-section").offset().top | |
}, 1000); | |
e.preventDefault(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment