add files fresh react
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export function initPageLoader() {
|
||||
window.addEventListener('load', () => {
|
||||
const pageloader = document.getElementById('pageloader');
|
||||
const infraloader = document.getElementById('infraloader');
|
||||
pageloader.classList.toggle('is-active');
|
||||
var pageloaderTimeout = setTimeout(function () {
|
||||
infraloader.classList.remove('is-active');
|
||||
pageloader.classList.toggle('is-active');
|
||||
clearTimeout(pageloaderTimeout);
|
||||
}, 1200);
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user