-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloading-screen.html
141 lines (126 loc) · 3.78 KB
/
loading-screen.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Loading</title>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@700&display=swap" rel="stylesheet">
<style>
:root {
--primary-color: #811ef3;
--secondary-color: #639aff;
--background-color: #1a1a2e;
--background-light: #292961;
}
body, html {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
background: linear-gradient(135deg, var(--background-color), var(--background-light));
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
font-family: 'Ubuntu', sans-serif;
}
.loading-container {
text-align: center;
position: relative;
background: #ffffff00;
}
.logo {
width: 30rem;
height: 30rem;
background: url('/images/NEWFULLLOGO.png') no-repeat center;
background-size: contain;
margin: 1rem;
opacity: 0;
animation: popIn 0.8s forwards;
}
.loading-text {
color: white;
font-size: 1.5rem;
letter-spacing: 3px;
text-transform: uppercase;
opacity: 0;
animation: fadeIn 0.8s 0.4s forwards;
}
.loader {
width: 60px;
height: 60px;
border: 5px solid rgba(255, 255, 255, 0.1);
border-top: 5px solid var(--primary-color);
border-radius: 50%;
margin: 1rem auto;
animation: spin 1s linear infinite, fadeIn 0.8s 0.6s forwards;
opacity: 0;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes popIn {
0% {
transform: scale(0.5);
opacity: 0;
}
80% {
transform: scale(1.1);
opacity: 1;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.grid-background {
position: absolute;
top: 2rem;
left: 3rem;
width: 100%;
height: 100%;
display: grid;
grid-template-columns: repeat(10, 1fr);
grid-template-rows: repeat(6, 1fr);
pointer-events: none;
}
.background-diamond {
width: auto;
height: auto;
border-radius: 1rem;
background-color: rgba(255, 255, 255, 0.199);
transform: rotate(45deg);
animation: rotate-diamond 10s linear infinite;
}
@keyframes rotate-diamond {
0% { transform: rotate(45deg); }
100% { transform: rotate(405deg); }
}
</style>
</head>
<body>
<div class="grid-background">
<script>
const grid = document.querySelector('.grid-background');
for (let i = 0; i < 60; i++) {
const diamond = document.createElement('div');
diamond.classList.add('background-diamond');
grid.appendChild(diamond);
}
</script>
</div>
<div class="loading-container">
<img src="/images/NEWFULLLOGO.png" class="logo"></img>
<div class="loading-text">Loading</div>
<div class="loader"></div>
</div>
</body>
</html>