Last active
January 19, 2020 17:37
-
-
Save levenokk/3baec4af361ae67b41b20b485d5c0489 to your computer and use it in GitHub Desktop.
preloader script
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
$(window).on('load', function () { | |
document.body.style.overflow = 'hidden'; | |
setTimeout(() => { | |
$('.preloader').addClass('done') | |
document.body.style.overflow = ''; | |
}, 1000); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment