Last active
September 27, 2016 08:11
-
-
Save zillingen/eea6b0ed2495bcedd1af8a8c4d1b191c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/*Прокрутка страницы к заданному элементу*/ | |
$("#button").click(function() { | |
$('html, body').animate({ | |
scrollTop: $("#myDiv").offset().top | |
}, 2000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ept