accounts-frontend/packages/app/components/ui/loader/componentLoader.scss

70 lines
813 B
SCSS
Raw Normal View History

@import '~app/components/ui/colors.scss';
2016-08-14 14:28:14 +05:30
.componentLoader {
2020-05-24 04:38:24 +05:30
width: 100%;
text-align: center;
2016-08-14 14:28:14 +05:30
}
.spins {
2020-05-24 04:38:24 +05:30
height: 40px;
2016-08-14 14:28:14 +05:30
}
.spin {
2020-05-24 04:38:24 +05:30
height: 20px;
width: 20px;
display: inline-block;
margin: 10px 2px;
opacity: 0;
animation: loaderAnimation 1s infinite;
2016-08-14 14:28:14 +05:30
}
.spin1 {
2020-05-24 04:38:24 +05:30
animation-delay: 0s;
2016-08-14 14:28:14 +05:30
}
.spin2 {
2020-05-24 04:38:24 +05:30
animation-delay: 0.1s;
2016-08-14 14:28:14 +05:30
}
.spin3 {
2020-05-24 04:38:24 +05:30
animation-delay: 0.2s;
2016-08-14 14:28:14 +05:30
}
.spin4 {
2020-05-24 04:38:24 +05:30
animation-delay: 0.3s;
2016-08-14 14:28:14 +05:30
}
.spin5 {
2020-05-24 04:38:24 +05:30
animation-delay: 0.4s;
2016-08-14 14:28:14 +05:30
}
/**
* Skins
*/
.lightComponentLoader {
2020-05-24 04:38:24 +05:30
.spin {
background: #aaa;
}
2016-08-14 14:28:14 +05:30
}
.darkComponentLoader {
2020-05-24 04:38:24 +05:30
.spin {
background: #444;
}
2016-08-14 14:28:14 +05:30
}
@keyframes loaderAnimation {
2020-05-24 04:38:24 +05:30
0% {
opacity: 0;
}
2016-08-14 14:28:14 +05:30
2020-05-24 04:38:24 +05:30
50% {
opacity: 1;
transform: scaleY(2);
}
2016-08-14 14:28:14 +05:30
2020-05-24 04:38:24 +05:30
100% {
opacity: 0;
}
2016-08-14 14:28:14 +05:30
}