ngx-spinner
Version:
A library with more than 50 different loading spinners for Angular 4 - 21. (https://napster2210.github.io/ngx-spinner/)
88 lines (71 loc) • 1.29 kB
CSS
/*!
* Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
* Copyright 2015 Daniel Cardoso <@DanielCardoso>
* Licensed under MIT
*/
.la-ball-spin-rotate,
.la-ball-spin-rotate > div {
position: relative;
box-sizing: border-box;
}
.la-ball-spin-rotate {
display: block;
font-size: 0;
color: #fff;
}
.la-ball-spin-rotate.la-dark {
color: #333;
}
.la-ball-spin-rotate > div {
display: inline-block;
float: none;
background-color: currentColor;
border: 0 solid currentColor;
}
.la-ball-spin-rotate {
width: 32px;
height: 32px;
animation: ball-spin-rotate 2s infinite linear;
}
.la-ball-spin-rotate > div {
position: absolute;
top: 0;
width: 60%;
height: 60%;
border-radius: 100%;
animation: ball-spin-bounce 2s infinite ease-in-out;
}
.la-ball-spin-rotate > div:last-child {
top: auto;
bottom: 0;
animation-delay: -1s;
}
.la-ball-spin-rotate.la-sm {
width: 16px;
height: 16px;
}
.la-ball-spin-rotate.la-2x {
width: 64px;
height: 64px;
}
.la-ball-spin-rotate.la-3x {
width: 96px;
height: 96px;
}
/*
* Animations
*/
@keyframes ball-spin-rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes ball-spin-bounce {
0%,
100% {
transform: scale(0);
}
50% {
transform: scale(1);
}
}