forked from Campus-INSA-CVL/campus-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloading-indicator.html
57 lines (52 loc) · 1.04 KB
/
loading-indicator.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<style>
body,
html,
#<%= globals.id %> {
background: <%= options.background %>;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
padding: 0;
}
.loading-indicator {
width: 60px;
height: 60px;
position: relative;
-webkit-animation: rotate 6s infinite ease;
animation: rotate 6s infinite ease;
}
.loading-indicator .logo {
background-color: white;
border-radius: 8px;
width: 100%;
height: 100%;
position: absolute;
}
.loading-indicator .logo::before {
content: '';
position: absolute;
top: -10px;
left: -10px;
background-image: url('/icon-small.png');
background-size: contain;
width: 80px;
height: 80px;
}
@-webkit-keyframes rotate {
100% {
-webkit-transform: rotate(360deg);
}
}
@keyframes rotate {
100% {
transform: rotate(360deg);
-webkit-transform: rotate(360deg);
}
}
</style>
<div class="loading-indicator">
<div class="logo"></div>
</div>