Created
July 20, 2020 18:30
-
-
Save rickslayer/6abdaaa7f9c32295826ac43446a267ab 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).on('keydown', function (e) { | |
if (e.which != 40) return false; | |
var posicao = $('#destino').position().top; | |
$('html, body').stop().animate({ | |
scrollTop: posicao | |
}, 1500); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment