Created
June 8, 2018 10:04
-
-
Save CB9TOIIIA/304a6a7565b81dff072c4303575880a8 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
window.hashName = window.location.hash; | |
$(window).load(function () { | |
$('html, body').animate({scrollTop: $(window.hashName).offset().top}, 2000); | |
return false;}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment