react-js-loader
Version:
animation loader and spinner for react js
95 lines (88 loc) • 2.07 kB
CSS
.sl-box4,
.sl-box4 * {
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.sl-box4 {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.sl-box4 .sl-loader-title {
width: 100%;
text-align: center;
font-size: 20px;
font-weight: 700;
line-height: 1.7;
color: var(--cl);
}
.sl-box4 .sl-loader {
width: 100px;
-webkit-transform: scale(var(--size));
transform: scale(var(--size));
}
.sl-box4 .sl-loader .sl-loader-items {
width: 100%;
height: 70px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.sl-box4 .sl-loader .sl-loader-items .sl-rectangular {
width: 10px;
height: 25px;
background-color: var(--bg);
border-radius: 5px;
-webkit-animation: sl-box4 600ms ease-in-out infinite;
animation: sl-box4 600ms ease-in-out infinite;
-webkit-animation-delay: calc(var(--i) * -650ms);
animation-delay: calc(var(--i) * -650ms);
}
@-webkit-keyframes sl-box4 {
from {
height: 30px;
}
50% {
height: 60px;
}
to {
height: 30px;
}
}
@keyframes sl-box4 {
from {
height: 30px;
}
50% {
height: 60px;
}
to {
height: 30px;
}
}