-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathloadinganimation.html
40 lines (40 loc) · 1.19 KB
/
loadinganimation.html
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
29
30
31
32
33
34
35
36
37
38
39
40
<html>
<body>
<div class="center">
<h1 id="text">loading...</h1>
<br>
<div id="loading"></div>
</div>
<style>
.center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
h1 {
font-family: sans-serif;
text-transform: uppercase;
font-size: 40px;
text-align: center;
color: white;
}
#loading {
background: linear-gradient(to left, rgb(36, 36, 36) 50%, rgb(62, 62, 255) 50%) left;
background-size: 200%;
background-position: right bottom;
width: 250px;
height: 50px;
animation: loadinganimation 5s forwards;
}
body {
background-color: rgb(12, 12, 12);
}
@keyframes loadinganimation {
to {
background-position: left bottom;
}
}
</style>
</body>
</html>