Magic of this few lines of JS code ๐
let spinnerWrapper = document.querySelector('.spinner-wrapper');
window.addEventListener('load', function(){
spinnerWrapper.style.display= 'none';
});
Magic of this few lines of JS code ๐
let spinnerWrapper = document.querySelector('.spinner-wrapper');
window.addEventListener('load', function(){
spinnerWrapper.style.display= 'none';
});
For further actions, you may consider blocking this person and/or reporting abuse
Shafayet Hossain -
Joan Peramรกs Ceras -
Hamza Khan -
Bojan Jagetic -
Top comments (21)
Add this to re-enable the loading layer on page exit(ing):
Kayaknya nggak perlu deh
Coba dulu. Terus klik salah satu tautan di halaman. Efek loading bakal muncul lagi.
Eh iya juga ya
๐
Sorry bro but I can't understand your language ๐ but thanks for commenting
Hehehehehe. I so sorry. I use Indonesian because, Taufik is Indonesian. Hehehehehe
Taufik Nurrohman
taufik-nurrohman http://latitudu.tk
Cool ๐๐๐
I noticed in some cases you used
.spinner:before
and.spinner:after
instead of.spinner::before
and.spinner::after
for the pseudo-elements. I think you need to use double colons since a single colon is reserved for pseudo-classes, like:focus
or:hover
.Okay hmm interesting ๐ฒ I will try thanks for your opinion ๐ท
The logic is correct Aleksandr, but in practice this is rarely needed. Most people just use
:
for everything. I've never seen a situation where using::before
worked and:before
didn't.Good to know!
๐ท๐
You are right brother ๐
I had no idea that was so simple without a framework!
Really love this one.
One question is it is compulsory to set the /stimulate page content/ code ...?
No it's your body content I have added it for page content put here your page code. Any other questions bro?
Ohk bro thanks for ur reply
I love to do that โ๏ธ
How would I make the loader disappear in a specific amount of time (100ms, 500ms etc...) instead of on content load?
Hey I'm sorry but I haven't learned advance javascript yet but I have found a useful answer on stackoverflow checkout this link click here