ngx-spinner
Version:
A library with more than 50 different loading spinners for Angular 4 - 21. (https://napster2210.github.io/ngx-spinner/)
156 lines (116 loc) • 2.3 kB
CSS
/*!
* Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
* Copyright 2015 Daniel Cardoso <@DanielCardoso>
* Licensed under MIT
*/
.la-ball-grid-pulse,
.la-ball-grid-pulse > div {
position: relative;
box-sizing: border-box;
}
.la-ball-grid-pulse {
display: block;
font-size: 0;
color: #fff;
}
.la-ball-grid-pulse.la-dark {
color: #333;
}
.la-ball-grid-pulse > div {
display: inline-block;
float: none;
background-color: currentColor;
border: 0 solid currentColor;
}
.la-ball-grid-pulse {
width: 36px;
height: 36px;
}
.la-ball-grid-pulse > div {
width: 8px;
height: 8px;
margin: 2px;
border-radius: 100%;
animation-name: ball-grid-pulse;
animation-iteration-count: infinite;
}
.la-ball-grid-pulse > div:nth-child(1) {
animation-duration: 0.65s;
animation-delay: 0.03s;
}
.la-ball-grid-pulse > div:nth-child(2) {
animation-duration: 1.02s;
animation-delay: 0.09s;
}
.la-ball-grid-pulse > div:nth-child(3) {
animation-duration: 1.06s;
animation-delay: -0.69s;
}
.la-ball-grid-pulse > div:nth-child(4) {
animation-duration: 1.5s;
animation-delay: -0.41s;
}
.la-ball-grid-pulse > div:nth-child(5) {
animation-duration: 1.6s;
animation-delay: 0.04s;
}
.la-ball-grid-pulse > div:nth-child(6) {
animation-duration: 0.84s;
animation-delay: 0.07s;
}
.la-ball-grid-pulse > div:nth-child(7) {
animation-duration: 0.68s;
animation-delay: -0.66s;
}
.la-ball-grid-pulse > div:nth-child(8) {
animation-duration: 0.93s;
animation-delay: -0.76s;
}
.la-ball-grid-pulse > div:nth-child(9) {
animation-duration: 1.24s;
animation-delay: -0.76s;
}
.la-ball-grid-pulse.la-sm {
width: 18px;
height: 18px;
}
.la-ball-grid-pulse.la-sm > div {
width: 4px;
height: 4px;
margin: 1px;
}
.la-ball-grid-pulse.la-2x {
width: 72px;
height: 72px;
}
.la-ball-grid-pulse.la-2x > div {
width: 16px;
height: 16px;
margin: 4px;
}
.la-ball-grid-pulse.la-3x {
width: 108px;
height: 108px;
}
.la-ball-grid-pulse.la-3x > div {
width: 24px;
height: 24px;
margin: 6px;
}
/*
* Animation
*/
@keyframes ball-grid-pulse {
0% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.35;
transform: scale(0.45);
}
100% {
opacity: 1;
transform: scale(1);
}
}