react-js-loader
Version:
animation loader and spinner for react js
136 lines (128 loc) • 3.28 kB
CSS
.sl-bubble4,
.sl-bubble4 * {
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.sl-bubble4 {
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-bubble4 .sl-loader {
width: 100px;
-webkit-transform: scale(var(--size));
transform: scale(var(--size));
}
.sl-bubble4 .sl-loader-title {
padding-top: 10px;
width: 100%;
color: var(--cl);
font-weight: 700;
font-size: 20px;
line-height: 1.7;
text-align: center;
}
.sl-bubble4 .sl-loader .sl-loader-items {
width: 100%;
height: 100px;
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.sl-bubble4 .sl-loader .sl-loader-items .sl-item-content-loader {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
width: 70px;
-webkit-animation: sl-bubble4 1.5s ease-in infinite;
animation: sl-bubble4 1.5s ease-in infinite;
}
.sl-bubble4 .sl-loader .sl-loader-items .sl-item-content-loader .sl-circle {
width: 14px;
height: 14px;
border-radius: 50%;
background-color: var(--bg);
}
@-webkit-keyframes sl-bubble4 {
from {
-webkit-transform: rotate(0);
transform: rotate(0);
}
45% {
-webkit-transform: rotate(400deg);
transform: rotate(400deg);
}
50% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
95% {
-webkit-transform: rotate(-40deg);
transform: rotate(-40deg);
}
to {
-webkit-transform: rotate(0);
transform: rotate(0);
}
}
@keyframes sl-bubble4 {
from {
-webkit-transform: rotate(0);
transform: rotate(0);
}
45% {
-webkit-transform: rotate(400deg);
transform: rotate(400deg);
}
50% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
95% {
-webkit-transform: rotate(-40deg);
transform: rotate(-40deg);
}
to {
-webkit-transform: rotate(0);
transform: rotate(0);
}
}