Fade in when the page has loaded
This commit is contained in:
parent
964ac4bd2c
commit
ae6e9a00d4
3 changed files with 13 additions and 1 deletions
|
@ -64,4 +64,8 @@ function documentReady(callback) {
|
|||
setTimeout(callback, 1);
|
||||
else
|
||||
document.addEventListener("DOMContentLoaded", callback);
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = () => {
|
||||
document.querySelector("html").style.opacity = 1;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue