Created
February 17, 2020 10:58
-
-
Save nympheastudio/480572aa8634299288f108465cfbcda6 to your computer and use it in GitHub Desktop.
add loader to website
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
//source : https://dev.to/atulcodex/how-to-add-loader-in-the-website-in-a-few-seconds-4k7n | |
let spinnerWrapper = document.querySelector('.spinner-wrapper'); | |
window.addEventListener('load', function(){ | |
spinnerWrapper.style.display= 'none'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment