Skip to content

Commit

Permalink
loading added
Browse files Browse the repository at this point in the history
  • Loading branch information
aslight0013 committed Oct 18, 2022
1 parent 5e40b72 commit f31601c
Showing 1 changed file with 74 additions and 13 deletions.
87 changes: 74 additions & 13 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,87 @@
<link rel="manifest" href="manifest.json">
<!-- Styling for loading indicator -->
<style>
.container {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #212332;
}
@import url(https://fonts.googleapis.com/css?family=Quattrocento+Sans);
.loading {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
z-index: 9999;
}
.loading-text {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
text-align: center;
width: 100%;
height: 100px;
line-height: 100px;
}
.loading-text span {
display: inline-block;
margin: 0 5px;
color: #fff;
font-family: 'Quattrocento Sans', sans-serif;
}
.loading-text span:nth-child(1) {
filter: blur(0px);
animation: blur-text 1.5s 0s infinite linear alternate;
}
.loading-text span:nth-child(2) {
filter: blur(0px);
animation: blur-text 1.5s 0.2s infinite linear alternate;
}
.loading-text span:nth-child(3) {
filter: blur(0px);
animation: blur-text 1.5s 0.4s infinite linear alternate;
}
.loading-text span:nth-child(4) {
filter: blur(0px);
animation: blur-text 1.5s 0.6s infinite linear alternate;
}
.loading-text span:nth-child(5) {
filter: blur(0px);
animation: blur-text 1.5s 0.8s infinite linear alternate;
}
.loading-text span:nth-child(6) {
filter: blur(0px);
animation: blur-text 1.5s 1s infinite linear alternate;
}
.loading-text span:nth-child(7) {
filter: blur(0px);
animation: blur-text 1.5s 1.2s infinite linear alternate;
}
@keyframes blur-text {
0% {
filter: blur(0px);
}
100% {
filter: blur(4px);
}
}

.indicator {
width: 10vw;
}
</style>

</head>

<body style="overflow: hidden">
<!-- Loading Indicator -->
<div id="loading_container" class="container">
<img src="./assets/loading.gif" alt="loading indicator" class="indicator">
<div class="loading">
<div class="loading-text">
<span class="loading-text-words">L</span>
<span class="loading-text-words">O</span>
<span class="loading-text-words">A</span>
<span class="loading-text-words">D</span>
<span class="loading-text-words">I</span>
<span class="loading-text-words">N</span>
<span class="loading-text-words">G</span>
</div>
</div>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
Expand Down

0 comments on commit f31601c

Please sign in to comment.