Fade in when the page has loaded

This commit is contained in:
Robert Marshall 2020-06-20 07:53:37 +01:00
parent 964ac4bd2c
commit ae6e9a00d4
3 changed files with 13 additions and 1 deletions

View file

@ -64,4 +64,8 @@ function documentReady(callback) {
setTimeout(callback, 1);
else
document.addEventListener("DOMContentLoaded", callback);
}
}
window.onload = () => {
document.querySelector("html").style.opacity = 1;
};