html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div id="preloader">
<div class="loaderZoom">
<div class="loader"></div>
</div>
</div>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #142718;
display: flex;
justify-content: center;
align-items: center;
z-index: 999;
transition: opacity 0.5s linear;
}
.loader {
transform: scale(1);
transition: transform 1s ease-in;
width: 70px;
height: 70px;
border-radius: 50%;
border: 8px solid #444444;
border-top: 8px solid darkorange;
animation: spin 1.2s linear infinite;
}
.loaderZoom{
animation:zoom-hide 1s ease-in 2s forwards;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
// In your theme's footer.php or create a new script file
document.addEventListener("DOMContentLoaded", function() {
setTimeout(function() {
document.getElementById("preloader").style.opacity = 0;
}, 2250);
});
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Laufen