Skip to content

Commit

Permalink
Adding third loader
Browse files Browse the repository at this point in the history
  • Loading branch information
FideleLesobre2022 committed May 19, 2024
1 parent 74cbbf9 commit 770bfec
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 4 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,13 @@

Chargement . . .
</section>

<section class="section-loading-bar">
<span class="loading-bar first"></span>
<span class="loading-bar second"></span>
<span class="loading-bar third"></span>
<span class="loading-bar fourth"></span>
Chargement . . .
</section>
</body>
</html>
50 changes: 46 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ body
width: 90px;
position: relative;
vertical-align: middle;
animation: spin 3s linear infinite;
animation: spin 10s linear infinite;
}

.loader-quart-4{
Expand All @@ -108,7 +108,7 @@ body
border: #ffffff00 5px solid;
display: inline-block;
position: absolute;
animation: spin 3s linear infinite;
animation: spin 5s linear infinite;
}

.loader-quart-5
Expand All @@ -128,7 +128,7 @@ body
border: #ffffff00 5px solid;
display: inline-block;
position: absolute;
animation: spin 3s linear infinite;
animation: spin 10s linear infinite;
}

.loader-quart-6
Expand All @@ -142,12 +142,54 @@ body
}


/* Loading bar */
.section-loading-bar
{
background-color: violet;
}

.loading-bar
{
background-color: #fff;
height: 60px;
width: 20px;
display: inline-block;
vertical-align: middle;
}

.first
{
animation: loading-bar 1s linear infinite;
}
.second
{
animation: loading-bar 1s linear -.20s infinite;
}

.third
{
animation: loading-bar 1s linear -.40s infinite;
}

.fourth
{
animation: loading-bar 1s linear -.80s infinite;
}


@keyframes loading-bar {
0%{
transform: scale(0);
opacity: 0;
}
50%{
transform: scale(1);
opacity: 1;
}
100%{
transform: scale(0);
opacity: 0;
}
}

@keyframes spin{
0%{
Expand Down

0 comments on commit 770bfec

Please sign in to comment.