-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathLoading Effect
78 lines (64 loc) · 1.08 KB
/
Loading Effect
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Loading </title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=DotGothic16&display=swap" rel="stylesheet">
<style>
*{
margin:0px;
padding:0px;
box-sizing:border-box;
font-family: *Fredoke One*,cursive;
}
html{
font-size: 88%;
}
.main-div{
width:100vw;
height:100vh;
background-color:#000;
display:grid;
place-items:center;
}
.center_div{
width: 15rem;
height: 15rem;
position:relative;
}
.rot{
width: 15rem;
height: 15rem;
position: absolute;
border-right: 0.3rem solid #fff;
border-radius: 50%;
animation: rot 2s linear infinite;
}
@keyframes rot {
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}
h1{
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%, -50%);
color:#fff;
}
</style>
</head>
<body>
<div class="main-div">
<div class="center_div">
<div class="rot"> </div>
<h1>loading </h1>
</div>
</div>
</body>
</html>