Skip to content

Commit

Permalink
add animation if log empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Kry9toN committed Jan 25, 2021
1 parent ffc9c72 commit c8b7c4b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
56 changes: 56 additions & 0 deletions views/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,59 @@ footer {
font-size: 3rem;
}
}

.log {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.log div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: red;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.log div:nth-child(1) {
left: 8px;
animation: lds-ellipsis1 0.6s infinite;
}
.log div:nth-child(2) {
left: 8px;
animation: lds-ellipsis2 0.6s infinite;
}
.log div:nth-child(3) {
left: 32px;
animation: lds-ellipsis2 0.6s infinite;
}
.log div:nth-child(4) {
left: 56px;
animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes lds-ellipsis3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes lds-ellipsis2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
2 changes: 1 addition & 1 deletion views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<!-- ULTIME -->
<div class="uptime">Uptime:</div>
<label class="log-label">Bot command log realtime: </label>
<div class="log"></div>
<div class="log"><div></div><div></div><div></div><div></div></div>
</div>

<footer>KryPtoN 😎 ©2021</footer>
Expand Down

0 comments on commit c8b7c4b

Please sign in to comment.