react-js-loader
Version:
animation loader and spinner for react js
98 lines (91 loc) • 2.3 kB
CSS
.sl-bubble1,
.sl-bubble1 * {
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.sl-bubble1 {
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-bubble1 .sl-loader {
width: 150px;
height: 40px;
-webkit-transform: scale(var(--size));
transform: scale(var(--size));
}
.sl-bubble1 .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-bubble1 .sl-loader-items {
width: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-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-bubble1 .sl-loader-items .sl-bubble {
width: 30px;
height: 30px;
background-color: var(--bg);
border-radius: 100%;
-webkit-animation: sl-bubble1 1200ms ease-in-out infinite;
animation: sl-bubble1 1200ms ease-in-out infinite;
-webkit-animation-delay: calc(var(--i) * -350ms);
animation-delay: calc(var(--i) * -350ms);
}
@-webkit-keyframes sl-bubble1 {
to {
-webkit-transform: scale(1, 1);
transform: scale(1, 1);
}
50% {
-webkit-transform: scale(0.3, 0.3);
transform: scale(0.3, 0.3);
}
from {
-webkit-transform: scale(1, 1);
transform: scale(1, 1);
}
}
@keyframes sl-bubble1 {
to {
-webkit-transform: scale(1, 1);
transform: scale(1, 1);
}
50% {
-webkit-transform: scale(0.3, 0.3);
transform: scale(0.3, 0.3);
}
from {
-webkit-transform: scale(1, 1);
transform: scale(1, 1);
}
}