Skip to content

Commit

Permalink
Added Box Loader (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanda-04 authored Feb 21, 2024
1 parent 924f075 commit a07ed4b
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Components/Loaders/Box-Loader/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Box Loader</title>
</head>
<body>
<div class="load">

<div class="loder">
<span></span>
<span></span>
<span></span>
</div>
<div class="loading">Loading ...</div>
</div>
</body>
</html>
104 changes: 104 additions & 0 deletions Components/Loaders/Box-Loader/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap');

*{
margin: 0;
padding: 0;
box-sizing: border-box;

}
body{
background-color:#d9e1f0;

min-height: 100vh;
}

.load{
position: absolute;
top: 0;
left: 0;
width: 100%;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

.loading{

font-size: 2rem;
font-weight: bolder;
font-family: Ubuntu;
color: rgb(255, 255, 255);
animation: loading 1s linear infinite;
position: relative;
top: 5rem;
}

.loder{

display: flex;
flex-direction: column;
position: absolute;
top: calc(50% - 3.5rem);
left: calc(50% - 3.5rem);
width: 7rem;
height: 7rem;
}
.loder span{

z-index: 2;

width: 2rem;
height: 2rem;
background-color: #fff;
border-radius: 4px;
animation: load 2s linear infinite;

}
.loder span:nth-child(1){
animation-delay: 0;
background: rgb(240, 36, 36);
box-shadow: 0 10px 10px rgb(240, 36, 36 , 0.5);
}
.loder span:nth-child(2){
animation-delay: -0.667s;
background: rgb(240, 209, 36);
box-shadow: 0 10px 10px rgb(240, 209, 36 , 0.5);
}
.loder span:nth-child(3){
animation-delay: -1.33s;
background: rgb(111, 240, 36);
box-shadow: 0 10px 10px rgb(111, 240, 36 , 0.5);
}

@keyframes load {
0%,100%{
position: absolute;
top: 0;
left: 0;
}
25%{
position: absolute;
top: 0;
left: 3.5rem;
}
50%{
position: absolute;
top: 3.5rem;
left: 3.5rem;
}
75%{
position: absolute;
top: 3.5rem;
left: 0;
}
}
@keyframes loading {
0%,100%{
opacity: 1;
}
50%{
opacity: 0.4;
}
}
15 changes: 15 additions & 0 deletions assets/html_files/loaders.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,21 @@ <h1>Reveal Loader</h1>
</a>
</div>
</div>
<div class="box">
<h1>Box Loader</h1>
<div class="preview">
<a href="../../Components/Loaders/Box-Loader/index.html" title="Live Preview"
target="_blank">
<img src="../images/link.png">
</a>
</div>
<div class="source">
<a href="https://github.com/Rakesh9100/Beautiify/tree/main/Components/Loaders/Box-Loader"
title="Source Code" target="_blank">
<img src="../images/github.png">
</a>
</div>
</div>
</div>
</section>

Expand Down

0 comments on commit a07ed4b

Please sign in to comment.