Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Loading.io - Pure CSS loader - all 12 and small version (CSS, SCSS and SCSS+$primary) - credits @ https://loading.io
/* All 12 Loading.io (plus small version for each) pure CSS loaders in one file, combined with $primary using e.g. template primary-color */
/* You can change the spinner with the classes load1 - load8 and load1-small - load8-small */
/* credits @ https://loading.io and https://github.com/loadingio/css-spinner/ */
/* circle */
.lds-circle, .lds-circle-small {
display: inline-block;
width: 64px;
height: 64px;
margin: 8px;
border-radius: 50%;
background: $primary;
animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
/* circle-small */
.lds-circle-small {
width: 48px;
height: 48px;
}
/* default */
.lds-default, .lds-default-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
position: absolute;
width: 6px;
height: 6px;
background: $primary;
border-radius: 50%;
animation: lds-default 1.2s linear infinite;
&:nth-child(1) {
animation-delay: 0s;
top: 37px;
left: 66px;
}
&:nth-child(2) {
animation-delay: -0.1s;
top: 22px;
left: 62px;
}
&:nth-child(3) {
animation-delay: -0.2s;
top: 11px;
left: 52px;
}
&:nth-child(4) {
animation-delay: -0.3s;
top: 7px;
left: 37px;
}
&:nth-child(5) {
animation-delay: -0.4s;
top: 11px;
left: 22px;
}
&:nth-child(6) {
animation-delay: -0.5s;
top: 22px;
left: 11px;
}
&:nth-child(7) {
animation-delay: -0.6s;
top: 37px;
left: 7px;
}
&:nth-child(8) {
animation-delay: -0.7s;
top: 52px;
left: 11px;
}
&:nth-child(9) {
animation-delay: -0.8s;
top: 62px;
left: 22px;
}
&:nth-child(10) {
animation-delay: -0.9s;
top: 66px;
left: 37px;
}
&:nth-child(11) {
animation-delay: -1s;
top: 62px;
left: 52px;
}
&:nth-child(12) {
animation-delay: -1.1s;
top: 52px;
left: 62px;
}
}
}
/* default-small */
.lds-default-small {
transform: scale(0.75);
}
/* dual-ring */
.lds-dual-ring, .lds-dual-ring-small {
display: inline-block;
width: 80px;
height: 80px;
&:after {
content: " ";
display: block;
width: 64px;
height: 64px;
margin: 8px;
border-radius: 50%;
border: 6px solid $primary;
border-color: $primary transparent $primary transparent;
animation: lds-dual-ring 1.2s linear infinite;
}
}
/* dual-ring-small */
.lds-dual-ring-small {
transform: scale(0.75);
}
/* ellipsis */
.lds-ellipsis, .lds-ellipsis-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: $primary;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
&:nth-child(1) {
left: 8px;
animation: lds-ellipsis1 0.6s infinite;
}
&:nth-child(2) {
left: 8px;
animation: lds-ellipsis2 0.6s infinite;
}
&:nth-child(3) {
left: 32px;
animation: lds-ellipsis2 0.6s infinite;
}
&:nth-child(4) {
left: 56px;
animation: lds-ellipsis3 0.6s infinite;
}
}
}
/* ellipsis */
.lds-ellipsis-small {
transform: scale(0.75);
}
/* facebook */
.lds-facebook, .lds-facebook-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
display: inline-block;
position: absolute;
left: 8px;
width: 16px;
background: $primary;
animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
&:nth-child(1) {
left: 8px;
animation-delay: -0.24s;
}
&:nth-child(2) {
left: 32px;
animation-delay: -0.12s;
}
&:nth-child(3) {
left: 56px;
animation-delay: 0;
}
}
}
/* facebook-small */
.lds-facebook-small {
transform: scale(0.75);
}
/* grid */
.lds-grid, .lds-grid-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
position: absolute;
width: 16px;
height: 16px;
border-radius: 50%;
background: $primary;
animation: lds-grid 1.2s linear infinite;
&:nth-child(1) {
top: 8px;
left: 8px;
animation-delay: 0s;
}
&:nth-child(2) {
top: 8px;
left: 32px;
animation-delay: -0.4s;
}
&:nth-child(3) {
top: 8px;
left: 56px;
animation-delay: -0.8s;
}
&:nth-child(4) {
top: 32px;
left: 8px;
animation-delay: -0.4s;
}
&:nth-child(5) {
top: 32px;
left: 32px;
animation-delay: -0.8s;
}
&:nth-child(6) {
top: 32px;
left: 56px;
animation-delay: -1.2s;
}
&:nth-child(7) {
top: 56px;
left: 8px;
animation-delay: -0.8s;
}
&:nth-child(8) {
top: 56px;
left: 32px;
animation-delay: -1.2s;
}
&:nth-child(9) {
top: 56px;
left: 56px;
animation-delay: -1.6s;
}
}
}
/* grid-small */
.lds-grid-small {
transform: scale(0.75);
}
/* heart */
.lds-heart, .lds-heart-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
transform: rotate(45deg);
transform-origin: 40px 40px;
div {
top: 32px;
left: 32px;
position: absolute;
width: 32px;
height: 32px;
background: $primary;
animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
&:after,
&:before {
content: " ";
position: absolute;
display: block;
width: 32px;
height: 32px;
background: $primary;
}
&:before {
left: -24px;
border-radius: 50% 0 0 50%;
}
&:after {
top: -24px;
border-radius: 50% 50% 0 0;
}
}
}
/* heart-small */
.lds-heart-small {
transform: rotate(45deg) scale(0.75);
}
/* ring */
.lds-ring, .lds-ring-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
box-sizing: border-box;
display: block;
position: absolute;
width: 64px;
height: 64px;
margin: 8px;
border: 8px solid $primary;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: $primary transparent transparent transparent;
&:nth-child(1) {
animation-delay: -0.45s;
}
&:nth-child(2) {
animation-delay: -0.3s;
}
&:nth-child(3) {
animation-delay: -0.15s;
}
}
}
/* ring-small */
.lds-ring-small {
transform: scale(0.75);
}
/* hourglass */
.lds-hourglass, .lds-hourglass-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
&:after {
content: " ";
display: block;
border-radius: 50%;
width: 0;
height: 0;
margin: 8px;
box-sizing: border-box;
border: 32px solid $primary;
border-color: $primary transparent $primary transparent;
animation: lds-hourglass 1.2s infinite;
}
}
/* hourglass-small */
.lds-hourglass-small {
transform: scale(0.75);
}
/* ripple */
.lds-ripple, .lds-ripple-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
position: absolute;
border: 4px solid $primary;
opacity: 1;
border-radius: 50%;
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
&:nth-child(2) {
animation-delay: -0.5s;
}
}
}
/* ripple-small */
.lds-ripple-small {
transform: scale(0.75);
}
/* roller */
.lds-roller, .lds-roller-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
transform-origin: 40px 40px;
&:after {
content: " ";
display: block;
position: absolute;
width: 7px;
height: 7px;
border-radius: 50%;
background: $primary;
margin: -4px 0 0 -4px;
}
&:nth-child(1) {
animation-delay: -0.036s;
&:after {
top: 63px;
left: 63px;
}
}
&:nth-child(2) {
animation-delay: -0.072s;
&:after {
top: 68px;
left: 56px;
}
}
&:nth-child(3) {
animation-delay: -0.108s;
&:after {
top: 71px;
left: 48px;
}
}
&:nth-child(4) {
animation-delay: -0.144s;
&:after {
top: 72px;
left: 40px;
}
}
&:nth-child(5) {
animation-delay: -0.18s;
&:after {
top: 71px;
left: 32px;
}
}
&:nth-child(6) {
animation-delay: -0.216s;
&:after {
top: 68px;
left: 24px;
}
}
&:nth-child(7) {
animation-delay: -0.252s;
&:after {
top: 63px;
left: 17px;
}
}
&:nth-child(8) {
animation-delay: -0.288s;
&:after {
top: 56px;
left: 12px;
}
}
}
}
/* roller-small */
.lds-roller-small {
transform: scale(0.75);
}
/* spinner */
.lds-spinner, .lds-spinner-small {
color: official;
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
transform-origin: 40px 40px;
animation: lds-spinner 1.2s linear infinite;
&:after {
content: " ";
display: block;
position: absolute;
top: 3px;
left: 37px;
width: 6px;
height: 18px;
border-radius: 20%;
background: $primary;
}
&:nth-child(1) {
transform: rotate(0deg);
animation-delay: -1.1s;
}
&:nth-child(2) {
transform: rotate(30deg);
animation-delay: -1s;
}
&:nth-child(3) {
transform: rotate(60deg);
animation-delay: -0.9s;
}
&:nth-child(4) {
transform: rotate(90deg);
animation-delay: -0.8s;
}
&:nth-child(5) {
transform: rotate(120deg);
animation-delay: -0.7s;
}
&:nth-child(6) {
transform: rotate(150deg);
animation-delay: -0.6s;
}
&:nth-child(7) {
transform: rotate(180deg);
animation-delay: -0.5s;
}
&:nth-child(8) {
transform: rotate(210deg);
animation-delay: -0.4s;
}
&:nth-child(9) {
transform: rotate(240deg);
animation-delay: -0.3s;
}
&:nth-child(10) {
transform: rotate(270deg);
animation-delay: -0.2s;
}
&:nth-child(11) {
transform: rotate(300deg);
animation-delay: -0.1s;
}
&:nth-child(12) {
transform: rotate(330deg);
animation-delay: 0s;
}
}
}
/* spinner-small */
.lds-spinner-small {
transform: scale(0.75);
}
/* circle */
@keyframes lds-circle {
0%, 100% {
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
}
0% {
transform: rotateY(0deg);
}
50% {
transform: rotateY(1800deg);
animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
}
100% {
transform: rotateY(3600deg);
}
}
/* default */
@keyframes lds-default {
0%, 20%, 80%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.5);
}
}
/* dual ring */
@keyframes lds-dual-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* ellipsis */
@keyframes lds-ellipsis1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes lds-ellipsis3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes lds-ellipsis2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
/* facebook */
@keyframes lds-facebook {
0% {
top: 8px;
height: 64px;
}
50%, 100% {
top: 24px;
height: 32px;
}
}
/* grid */
@keyframes lds-grid {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* heart */
@keyframes lds-heart {
0% {
transform: scale(0.95);
}
5% {
transform: scale(1.1);
}
39% {
transform: scale(0.85);
}
45% {
transform: scale(1);
}
60% {
transform: scale(0.95);
}
100% {
transform: scale(0.9);
}
}
/* hourglass */
@keyframes lds-hourglass {
0% {
transform: rotate(0);
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
50% {
transform: rotate(900deg);
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
100% {
transform: rotate(1800deg);
}
}
/* ring */
@keyframes lds-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* ripple */
@keyframes lds-ripple {
0% {
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 1;
}
100% {
top: 0px;
left: 0px;
width: 72px;
height: 72px;
opacity: 0;
}
}
/* roller */
@keyframes lds-roller {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* spinner */
@keyframes lds-spinner {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/* All 12 Loading.io (plus small version for each) pure CSS loaders in one file */
/* You can change the spinner with the classes load1 - load8 and load1-small - load8-small */
/* credits @ https://loading.io and https://github.com/loadingio/css-spinner/ */
/* circle */
.lds-circle,
.lds-circle-small {
display: inline-block;
width: 64px;
height: 64px;
margin: 8px;
border-radius: 50%;
background: #000;
animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
/* circle-small */
.lds-circle-small {
width: 48px;
height: 48px;
}
/* default */
.lds-default,
.lds-default-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-default div,
.lds-default-small div {
position: absolute;
width: 6px;
height: 6px;
background: #000;
border-radius: 50%;
animation: lds-default 1.2s linear infinite;
}
.lds-default div:nth-child(1),
.lds-default-small div:nth-child(1) {
animation-delay: 0s;
top: 37px;
left: 66px;
}
.lds-default div:nth-child(2),
.lds-default-small div:nth-child(2) {
animation-delay: -0.1s;
top: 22px;
left: 62px;
}
.lds-default div:nth-child(3),
.lds-default-small div:nth-child(3) {
animation-delay: -0.2s;
top: 11px;
left: 52px;
}
.lds-default div:nth-child(4),
.lds-default-small div:nth-child(4) {
animation-delay: -0.3s;
top: 7px;
left: 37px;
}
.lds-default div:nth-child(5),
.lds-default-small div:nth-child(5) {
animation-delay: -0.4s;
top: 11px;
left: 22px;
}
.lds-default div:nth-child(6),
.lds-default-small div:nth-child(6) {
animation-delay: -0.5s;
top: 22px;
left: 11px;
}
.lds-default div:nth-child(7),
.lds-default-small div:nth-child(7) {
animation-delay: -0.6s;
top: 37px;
left: 7px;
}
.lds-default div:nth-child(8),
.lds-default-small div:nth-child(8) {
animation-delay: -0.7s;
top: 52px;
left: 11px;
}
.lds-default div:nth-child(9),
.lds-default-small div:nth-child(9) {
animation-delay: -0.8s;
top: 62px;
left: 22px;
}
.lds-default div:nth-child(10),
.lds-default-small div:nth-child(10) {
animation-delay: -0.9s;
top: 66px;
left: 37px;
}
.lds-default div:nth-child(11),
.lds-default-small div:nth-child(11) {
animation-delay: -1s;
top: 62px;
left: 52px;
}
.lds-default div:nth-child(12),
.lds-default-small div:nth-child(12) {
animation-delay: -1.1s;
top: 52px;
left: 62px;
}
/* default-small */
.lds-default-small {
transform: scale(0.75);
}
/* dual-ring */
.lds-dual-ring,
.lds-dual-ring-small {
display: inline-block;
width: 80px;
height: 80px;
}
.lds-dual-ring:after,
.lds-dual-ring-small:after {
content: " ";
display: block;
width: 64px;
height: 64px;
margin: 8px;
border-radius: 50%;
border: 6px solid #000;
border-color: #000 transparent #000 transparent;
animation: lds-dual-ring 1.2s linear infinite;
}
/* dual-ring-small */
.lds-dual-ring-small {
transform: scale(0.75);
}
/* ellipsis */
.lds-ellipsis,
.lds-ellipsis-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ellipsis div,
.lds-ellipsis-small div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: #000;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1),
.lds-ellipsis-small div:nth-child(1) {
left: 8px;
animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2),
.lds-ellipsis-small div:nth-child(2) {
left: 8px;
animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3),
.lds-ellipsis-small div:nth-child(3) {
left: 32px;
animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4),
.lds-ellipsis-small div:nth-child(4) {
left: 56px;
animation: lds-ellipsis3 0.6s infinite;
}
/* ellipsis-small */
.lds-ellipsis-small {
transform: scale(0.75);
}
/* facebook */
.lds-facebook,
.lds-facebook-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-facebook div,
.lds-facebook-small div {
display: inline-block;
position: absolute;
left: 8px;
width: 16px;
background: #000;
animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1),
.lds-facebook-small div:nth-child(1) {
left: 8px;
animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2),
.lds-facebook-small div:nth-child(2) {
left: 32px;
animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3),
.lds-facebook-small div:nth-child(3) {
left: 56px;
animation-delay: 0;
}
/* facebook-small */
.lds-facebook-small {
transform: scale(0.75);
}
/* grid */
.lds-grid,
.lds-grid-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-grid div,
.lds-grid-small div {
position: absolute;
width: 16px;
height: 16px;
border-radius: 50%;
background: #000;
animation: lds-grid 1.2s linear infinite;
}
.lds-grid div:nth-child(1),
.lds-grid-small div:nth-child(1) {
top: 8px;
left: 8px;
animation-delay: 0s;
}
.lds-grid div:nth-child(2),
.lds-grid-small div:nth-child(2) {
top: 8px;
left: 32px;
animation-delay: -0.4s;
}
.lds-grid div:nth-child(3),
.lds-grid-small div:nth-child(3) {
top: 8px;
left: 56px;
animation-delay: -0.8s;
}
.lds-grid div:nth-child(4),
.lds-grid-small div:nth-child(4) {
top: 32px;
left: 8px;
animation-delay: -0.4s;
}
.lds-grid div:nth-child(5),
.lds-grid-small div:nth-child(5) {
top: 32px;
left: 32px;
animation-delay: -0.8s;
}
.lds-grid div:nth-child(6),
.lds-grid-small div:nth-child(6) {
top: 32px;
left: 56px;
animation-delay: -1.2s;
}
.lds-grid div:nth-child(7),
.lds-grid-small div:nth-child(7) {
top: 56px;
left: 8px;
animation-delay: -0.8s;
}
.lds-grid div:nth-child(8),
.lds-grid-small div:nth-child(8) {
top: 56px;
left: 32px;
animation-delay: -1.2s;
}
.lds-grid div:nth-child(9),
.lds-grid-small div:nth-child(9) {
top: 56px;
left: 56px;
animation-delay: -1.6s;
}
/* grid-small */
.lds-grid-small {
transform: scale(0.75);
}
/* heart */
.lds-heart,
.lds-heart-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
transform: rotate(45deg);
transform-origin: 40px 40px;
}
.lds-heart div,
.lds-heart-small div {
top: 32px;
left: 32px;
position: absolute;
width: 32px;
height: 32px;
background: #000;
animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
.lds-heart div:after,
.lds-heart-small div:after,
.lds-heart div:before,
.lds-heart-small div:before {
content: " ";
position: absolute;
display: block;
width: 32px;
height: 32px;
background: #000;
}
.lds-heart div:before,
.lds-heart-small div:before {
left: -24px;
border-radius: 50% 0 0 50%;
}
.lds-heart div:after,
.lds-heart-small div:after {
top: -24px;
border-radius: 50% 50% 0 0;
}
/* heart-small */
.lds-heart-small {
transform: rotate(45deg) scale(0.75);
}
/* hourglass */
.lds-hourglass,
.lds-hourglass-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-hourglass:after,
.lds-hourglass-small:after {
content: " ";
display: block;
border-radius: 50%;
width: 0;
height: 0;
margin: 8px;
box-sizing: border-box;
border: 32px solid #000;
border-color: #000 transparent #000 transparent;
animation: lds-hourglass 1.2s infinite;
}
/* hourglass-small */
.lds-hourglass-small {
transform: scale(0.75);
}
/* ring */
.lds-ring,
.lds-ring-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ring div,
.lds-ring-small div {
box-sizing: border-box;
display: block;
position: absolute;
width: 64px;
height: 64px;
margin: 8px;
border: 8px solid #000;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #000 transparent transparent transparent;
}
.lds-ring div:nth-child(1),
.lds-ring-small div:nth-child(1) {
animation-delay: -0.45s;
}
.lds-ring div:nth-child(2),
.lds-ring-small div:nth-child(2) {
animation-delay: -0.3s;
}
.lds-ring div:nth-child(3),
.lds-ring-small div:nth-child(3) {
animation-delay: -0.15s;
}
/* ring-small */
.lds-ring-small {
transform: scale(0.75);
}
/* ripple */
.lds-ripple,
.lds-ripple-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ripple div,
.lds-ripple-small div {
position: absolute;
border: 4px solid #000;
opacity: 1;
border-radius: 50%;
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2),
.lds-ripple-small div:nth-child(2) {
animation-delay: -0.5s;
}
/* ripple-small */
.lds-ripple-small {
transform: scale(0.75);
}
/* roller */
.lds-roller,
.lds-roller-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-roller div,
.lds-roller-small div {
animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
transform-origin: 40px 40px;
}
.lds-roller div:after,
.lds-roller-small div:after {
content: " ";
display: block;
position: absolute;
width: 7px;
height: 7px;
border-radius: 50%;
background: #000;
margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1),
.lds-roller-small div:nth-child(1) {
animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after,
.lds-roller-small div:nth-child(1):after {
top: 63px;
left: 63px;
}
.lds-roller div:nth-child(2),
.lds-roller-small div:nth-child(2) {
animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after,
.lds-roller-small div:nth-child(2):after {
top: 68px;
left: 56px;
}
.lds-roller div:nth-child(3),
.lds-roller-small div:nth-child(3) {
animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after,
.lds-roller-small div:nth-child(3):after {
top: 71px;
left: 48px;
}
.lds-roller div:nth-child(4),
.lds-roller-small div:nth-child(4) {
animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after,
.lds-roller-small div:nth-child(4):after {
top: 72px;
left: 40px;
}
.lds-roller div:nth-child(5),
.lds-roller-small div:nth-child(5) {
animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after,
.lds-roller-small div:nth-child(5):after {
top: 71px;
left: 32px;
}
.lds-roller div:nth-child(6),
.lds-roller-small div:nth-child(6) {
animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after,
.lds-roller-small div:nth-child(6):after {
top: 68px;
left: 24px;
}
.lds-roller div:nth-child(7),
.lds-roller-small div:nth-child(7) {
animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after,
.lds-roller-small div:nth-child(7):after {
top: 63px;
left: 17px;
}
.lds-roller div:nth-child(8),
.lds-roller-small div:nth-child(8) {
animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after,
.lds-roller-small div:nth-child(8):after {
top: 56px;
left: 12px;
}
/* roller-small */
.lds-roller-small {
transform: scale(0.75);
}
/* spinner */
.lds-spinner,
.lds-spinner-small {
color: official;
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-spinner div,
.lds-spinner-small div {
transform-origin: 40px 40px;
animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after,
.lds-spinner-small div:after {
content: " ";
display: block;
position: absolute;
top: 3px;
left: 37px;
width: 6px;
height: 18px;
border-radius: 20%;
background: #000;
}
.lds-spinner div:nth-child(1),
.lds-spinner-small div:nth-child(1) {
transform: rotate(0deg);
animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2),
.lds-spinner-small div:nth-child(2) {
transform: rotate(30deg);
animation-delay: -1s;
}
.lds-spinner div:nth-child(3),
.lds-spinner-small div:nth-child(3) {
transform: rotate(60deg);
animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4),
.lds-spinner-small div:nth-child(4) {
transform: rotate(90deg);
animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5),
.lds-spinner-small div:nth-child(5) {
transform: rotate(120deg);
animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6),
.lds-spinner-small div:nth-child(6) {
transform: rotate(150deg);
animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7),
.lds-spinner-small div:nth-child(7) {
transform: rotate(180deg);
animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8),
.lds-spinner-small div:nth-child(8) {
transform: rotate(210deg);
animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9),
.lds-spinner-small div:nth-child(9) {
transform: rotate(240deg);
animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10),
.lds-spinner-small div:nth-child(10) {
transform: rotate(270deg);
animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11),
.lds-spinner-small div:nth-child(11) {
transform: rotate(300deg);
animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12),
.lds-spinner-small div:nth-child(12) {
transform: rotate(330deg);
animation-delay: 0s;
}
/* spinner-small */
.lds-spinner-small {
transform: scale(0.75);
}
/* circle */
@keyframes lds-circle {
0%, 100% {
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
}
0% {
transform: rotateY(0deg);
}
50% {
transform: rotateY(1800deg);
animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
}
100% {
transform: rotateY(3600deg);
}
}
/* default */
@keyframes lds-default {
0%, 20%, 80%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.5);
}
}
/* dual ring */
@keyframes lds-dual-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* ellipsis */
@keyframes lds-ellipsis1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes lds-ellipsis3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes lds-ellipsis2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
/* facebook */
@keyframes lds-facebook {
0% {
top: 8px;
height: 64px;
}
50%, 100% {
top: 24px;
height: 32px;
}
}
/* grid */
@keyframes lds-grid {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* heart */
@keyframes lds-heart {
0% {
transform: scale(0.95);
}
5% {
transform: scale(1.1);
}
39% {
transform: scale(0.85);
}
45% {
transform: scale(1);
}
60% {
transform: scale(0.95);
}
100% {
transform: scale(0.9);
}
}
/* hourglass */
@keyframes lds-hourglass {
0% {
transform: rotate(0);
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
50% {
transform: rotate(900deg);
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
100% {
transform: rotate(1800deg);
}
}
/* ring */
@keyframes lds-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* ripple */
@keyframes lds-ripple {
0% {
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 1;
}
100% {
top: 0px;
left: 0px;
width: 72px;
height: 72px;
opacity: 0;
}
}
/* roller */
@keyframes lds-roller {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* spinner */
@keyframes lds-spinner {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/* All 12 Loading.io (plus small version for each) pure CSS loaders in one file, combined with #000 using e.g. template primary-color */
/* You can change the spinner with the classes load1 - load8 and load1-small - load8-small */
/* credits @ https://loading.io and https://github.com/loadingio/css-spinner/ */
/* circle */
.lds-circle, .lds-circle-small {
display: inline-block;
width: 64px;
height: 64px;
margin: 8px;
border-radius: 50%;
background: #000;
animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
/* circle-small */
.lds-circle-small {
width: 48px;
height: 48px;
}
/* default */
.lds-default, .lds-default-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
position: absolute;
width: 6px;
height: 6px;
background: #000;
border-radius: 50%;
animation: lds-default 1.2s linear infinite;
&:nth-child(1) {
animation-delay: 0s;
top: 37px;
left: 66px;
}
&:nth-child(2) {
animation-delay: -0.1s;
top: 22px;
left: 62px;
}
&:nth-child(3) {
animation-delay: -0.2s;
top: 11px;
left: 52px;
}
&:nth-child(4) {
animation-delay: -0.3s;
top: 7px;
left: 37px;
}
&:nth-child(5) {
animation-delay: -0.4s;
top: 11px;
left: 22px;
}
&:nth-child(6) {
animation-delay: -0.5s;
top: 22px;
left: 11px;
}
&:nth-child(7) {
animation-delay: -0.6s;
top: 37px;
left: 7px;
}
&:nth-child(8) {
animation-delay: -0.7s;
top: 52px;
left: 11px;
}
&:nth-child(9) {
animation-delay: -0.8s;
top: 62px;
left: 22px;
}
&:nth-child(10) {
animation-delay: -0.9s;
top: 66px;
left: 37px;
}
&:nth-child(11) {
animation-delay: -1s;
top: 62px;
left: 52px;
}
&:nth-child(12) {
animation-delay: -1.1s;
top: 52px;
left: 62px;
}
}
}
/* default-small */
.lds-default-small {
transform: scale(0.75);
}
/* dual-ring */
.lds-dual-ring, .lds-dual-ring-small {
display: inline-block;
width: 80px;
height: 80px;
&:after {
content: " ";
display: block;
width: 64px;
height: 64px;
margin: 8px;
border-radius: 50%;
border: 6px solid #000;
border-color: #000 transparent #000 transparent;
animation: lds-dual-ring 1.2s linear infinite;
}
}
/* dual-ring-small */
.lds-dual-ring-small {
transform: scale(0.75);
}
/* ellipsis */
.lds-ellipsis, .lds-ellipsis-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: #000;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
&:nth-child(1) {
left: 8px;
animation: lds-ellipsis1 0.6s infinite;
}
&:nth-child(2) {
left: 8px;
animation: lds-ellipsis2 0.6s infinite;
}
&:nth-child(3) {
left: 32px;
animation: lds-ellipsis2 0.6s infinite;
}
&:nth-child(4) {
left: 56px;
animation: lds-ellipsis3 0.6s infinite;
}
}
}
/* ellipsis */
.lds-ellipsis-small {
transform: scale(0.75);
}
/* facebook */
.lds-facebook, .lds-facebook-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
display: inline-block;
position: absolute;
left: 8px;
width: 16px;
background: #000;
animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
&:nth-child(1) {
left: 8px;
animation-delay: -0.24s;
}
&:nth-child(2) {
left: 32px;
animation-delay: -0.12s;
}
&:nth-child(3) {
left: 56px;
animation-delay: 0;
}
}
}
/* facebook-small */
.lds-facebook-small {
transform: scale(0.75);
}
/* grid */
.lds-grid, .lds-grid-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
position: absolute;
width: 16px;
height: 16px;
border-radius: 50%;
background: #000;
animation: lds-grid 1.2s linear infinite;
&:nth-child(1) {
top: 8px;
left: 8px;
animation-delay: 0s;
}
&:nth-child(2) {
top: 8px;
left: 32px;
animation-delay: -0.4s;
}
&:nth-child(3) {
top: 8px;
left: 56px;
animation-delay: -0.8s;
}
&:nth-child(4) {
top: 32px;
left: 8px;
animation-delay: -0.4s;
}
&:nth-child(5) {
top: 32px;
left: 32px;
animation-delay: -0.8s;
}
&:nth-child(6) {
top: 32px;
left: 56px;
animation-delay: -1.2s;
}
&:nth-child(7) {
top: 56px;
left: 8px;
animation-delay: -0.8s;
}
&:nth-child(8) {
top: 56px;
left: 32px;
animation-delay: -1.2s;
}
&:nth-child(9) {
top: 56px;
left: 56px;
animation-delay: -1.6s;
}
}
}
/* grid-small */
.lds-grid-small {
transform: scale(0.75);
}
/* heart */
.lds-heart, .lds-heart-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
transform: rotate(45deg);
transform-origin: 40px 40px;
div {
top: 32px;
left: 32px;
position: absolute;
width: 32px;
height: 32px;
background: #000;
animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
&:after,
&:before {
content: " ";
position: absolute;
display: block;
width: 32px;
height: 32px;
background: #000;
}
&:before {
left: -24px;
border-radius: 50% 0 0 50%;
}
&:after {
top: -24px;
border-radius: 50% 50% 0 0;
}
}
}
/* heart-small */
.lds-heart-small {
transform: rotate(45deg) scale(0.75);
}
/* ring */
.lds-ring, .lds-ring-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
box-sizing: border-box;
display: block;
position: absolute;
width: 64px;
height: 64px;
margin: 8px;
border: 8px solid #000;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #000 transparent transparent transparent;
&:nth-child(1) {
animation-delay: -0.45s;
}
&:nth-child(2) {
animation-delay: -0.3s;
}
&:nth-child(3) {
animation-delay: -0.15s;
}
}
}
/* ring-small */
.lds-ring-small {
transform: scale(0.75);
}
/* hourglass */
.lds-hourglass, .lds-hourglass-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
&:after {
content: " ";
display: block;
border-radius: 50%;
width: 0;
height: 0;
margin: 8px;
box-sizing: border-box;
border: 32px solid #000;
border-color: #000 transparent #000 transparent;
animation: lds-hourglass 1.2s infinite;
}
}
/* hourglass-small */
.lds-hourglass-small {
transform: scale(0.75);
}
/* ripple */
.lds-ripple, .lds-ripple-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
position: absolute;
border: 4px solid #000;
opacity: 1;
border-radius: 50%;
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
&:nth-child(2) {
animation-delay: -0.5s;
}
}
}
/* ripple-small */
.lds-ripple-small {
transform: scale(0.75);
}
/* roller */
.lds-roller, .lds-roller-small {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
transform-origin: 40px 40px;
&:after {
content: " ";
display: block;
position: absolute;
width: 7px;
height: 7px;
border-radius: 50%;
background: #000;
margin: -4px 0 0 -4px;
}
&:nth-child(1) {
animation-delay: -0.036s;
&:after {
top: 63px;
left: 63px;
}
}
&:nth-child(2) {
animation-delay: -0.072s;
&:after {
top: 68px;
left: 56px;
}
}
&:nth-child(3) {
animation-delay: -0.108s;
&:after {
top: 71px;
left: 48px;
}
}
&:nth-child(4) {
animation-delay: -0.144s;
&:after {
top: 72px;
left: 40px;
}
}
&:nth-child(5) {
animation-delay: -0.18s;
&:after {
top: 71px;
left: 32px;
}
}
&:nth-child(6) {
animation-delay: -0.216s;
&:after {
top: 68px;
left: 24px;
}
}
&:nth-child(7) {
animation-delay: -0.252s;
&:after {
top: 63px;
left: 17px;
}
}
&:nth-child(8) {
animation-delay: -0.288s;
&:after {
top: 56px;
left: 12px;
}
}
}
}
/* roller-small */
.lds-roller-small {
transform: scale(0.75);
}
/* spinner */
.lds-spinner, .lds-spinner-small {
color: official;
display: inline-block;
position: relative;
width: 80px;
height: 80px;
div {
transform-origin: 40px 40px;
animation: lds-spinner 1.2s linear infinite;
&:after {
content: " ";
display: block;
position: absolute;
top: 3px;
left: 37px;
width: 6px;
height: 18px;
border-radius: 20%;
background: #000;
}
&:nth-child(1) {
transform: rotate(0deg);
animation-delay: -1.1s;
}
&:nth-child(2) {
transform: rotate(30deg);
animation-delay: -1s;
}
&:nth-child(3) {
transform: rotate(60deg);
animation-delay: -0.9s;
}
&:nth-child(4) {
transform: rotate(90deg);
animation-delay: -0.8s;
}
&:nth-child(5) {
transform: rotate(120deg);
animation-delay: -0.7s;
}
&:nth-child(6) {
transform: rotate(150deg);
animation-delay: -0.6s;
}
&:nth-child(7) {
transform: rotate(180deg);
animation-delay: -0.5s;
}
&:nth-child(8) {
transform: rotate(210deg);
animation-delay: -0.4s;
}
&:nth-child(9) {
transform: rotate(240deg);
animation-delay: -0.3s;
}
&:nth-child(10) {
transform: rotate(270deg);
animation-delay: -0.2s;
}
&:nth-child(11) {
transform: rotate(300deg);
animation-delay: -0.1s;
}
&:nth-child(12) {
transform: rotate(330deg);
animation-delay: 0s;
}
}
}
/* spinner-small */
.lds-spinner-small {
transform: scale(0.75);
}
/* circle */
@keyframes lds-circle {
0%, 100% {
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
}
0% {
transform: rotateY(0deg);
}
50% {
transform: rotateY(1800deg);
animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
}
100% {
transform: rotateY(3600deg);
}
}
/* default */
@keyframes lds-default {
0%, 20%, 80%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.5);
}
}
/* dual ring */
@keyframes lds-dual-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* ellipsis */
@keyframes lds-ellipsis1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes lds-ellipsis3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes lds-ellipsis2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
/* facebook */
@keyframes lds-facebook {
0% {
top: 8px;
height: 64px;
}
50%, 100% {
top: 24px;
height: 32px;
}
}
/* grid */
@keyframes lds-grid {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* heart */
@keyframes lds-heart {
0% {
transform: scale(0.95);
}
5% {
transform: scale(1.1);
}
39% {
transform: scale(0.85);
}
45% {
transform: scale(1);
}
60% {
transform: scale(0.95);
}
100% {
transform: scale(0.9);
}
}
/* hourglass */
@keyframes lds-hourglass {
0% {
transform: rotate(0);
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
50% {
transform: rotate(900deg);
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
100% {
transform: rotate(1800deg);
}
}
/* ring */
@keyframes lds-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* ripple */
@keyframes lds-ripple {
0% {
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 1;
}
100% {
top: 0px;
left: 0px;
width: 72px;
height: 72px;
opacity: 0;
}
}
/* roller */
@keyframes lds-roller {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* spinner */
@keyframes lds-spinner {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment