Created
January 12, 2017 21:42
-
-
Save chernysh2909/95e4333a796f9fc94255c63b22c2f9cc to your computer and use it in GitHub Desktop.
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
$(".mouse-icon").click(function(){ | |
$("html, body").animate({ | |
scrollTop : $(".s-adv").offset().top | |
}, 1000); | |
}) | |
//.mouse-icon - элемент на который кликаем | |
//.s-adv - куда скролит |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment