-
Greg Fodor authoredGreg Fodor authored
loader.scss 1.32 KiB
.loader-wrap {
position: relative;
width: 100px;
height: 90px;
}
.loading-panel {
background-color: black;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.loading-panel__title {
@extend %default-font;
font-size: 1.2em;
}
.loader-center,
.loader:before,
.loader:after {
background: #555;
-webkit-animation: loader-animation 1s infinite ease-in-out;
animation: loader-animation 1s infinite ease-in-out;
width: 0.6em;
height: 1em;
border-radius: 5px;
}
.loader {
color: #555;
text-indent: -9999em;
margin-left: 4em;
margin-top: 4em;
font-size: 11px;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
}
.loader-center,
.loader:before,
.loader:after {
position: absolute;
top: 0;
content: '';
}
.loader-center {
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}
.loader:before {
left: -1.2em;
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}
.loader:after {
left: 1.2em;
}
@-webkit-keyframes loader-animation {
0%,
80%,
100% {
height: 2em;
top: 0;
}
40% {
height: 3.5em;
top: -0.75em;
}
}
@keyframes loader-animation {
0%,
80%,
100% {
height: 2em;
top: 0;
}
40% {
height: 3.5em;
top: -0.75em;
}
}