-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
38 lines (38 loc) · 1007 Bytes
/
test.html
File metadata and controls
38 lines (38 loc) · 1007 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Loader Animation</title>
<style>
/* HTML: <div class="loader"></div> */
.loader {
width: 60px;
aspect-ratio: 1;
background:
linear-gradient(90deg,#ffffff 50%,#2758e2 0) top/100% 50% no-repeat,
linear-gradient(90deg,#3abef9 50%,#fb6222 0);
-webkit-mask:linear-gradient(#000 0 0) 0 0/50% 50% no-repeat;
mask: linear-gradient(#000 0 0) 0 0/50% 50% no-repeat;
animation: l18 2s infinite;
}
@keyframes l18 {
0% {-webkit-mask-position:0 0 }
25% {-webkit-mask-position:100% 0 }
50% {-webkit-mask-position:100% 100%}
75% {-webkit-mask-position:0 100%}
100% {-webkit-mask-position:0 0 }
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: #222;
}
</style>
</head>
<body>
<div class="loader"></div>
</body>
</html>