Fade loading

This commit is contained in:
WhyKorp
2023-12-18 21:15:16 +01:00
committed by GitHub
parent 49b497a6bd
commit e2bf69abc7
+2 -2
View File
@@ -14,7 +14,7 @@
<h1 class="title">WhyKorp</h1>
</header>
<style>
html {
div.container {
opacity: 0;
transition: opacity 1s;
}
@@ -25,7 +25,7 @@
<script>
window.addEventListener("load", function() {
document.querySelector("html").classList.add("show");
document.querySelector("div").classList.add("show");
});
</script>
<div class="nav">