UNPKG

ngx-spinner

Version:

A library with more than 50 different loading spinners for Angular 4 - 21. (https://napster2210.github.io/ngx-spinner/)

127 lines (105 loc) 1.81 kB
/*! * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/) * Copyright 2015 Daniel Cardoso <@DanielCardoso> * Licensed under MIT */ .la-ball-circus, .la-ball-circus > div { position: relative; box-sizing: border-box; } .la-ball-circus { display: block; font-size: 0; color: #fff; } .la-ball-circus.la-dark { color: #333; } .la-ball-circus > div { display: inline-block; float: none; background-color: currentColor; border: 0 solid currentColor; } .la-ball-circus { width: 16px; height: 16px; } .la-ball-circus > div { position: absolute; top: 0; left: -100%; display: block; width: 16px; width: 100%; height: 16px; height: 100%; border-radius: 100%; opacity: 0.5; animation: ball-circus-position 2.5s infinite cubic-bezier(0.25, 0, 0.75, 1), ball-circus-size 2.5s infinite cubic-bezier(0.25, 0, 0.75, 1); } .la-ball-circus > div:nth-child(1) { animation-delay: 0s, -0.5s; } .la-ball-circus > div:nth-child(2) { animation-delay: -0.5s, -1s; } .la-ball-circus > div:nth-child(3) { animation-delay: -1s, -1.5s; } .la-ball-circus > div:nth-child(4) { animation-delay: -1.5s, -2s; } .la-ball-circus > div:nth-child(5) { animation-delay: -2s, -2.5s; } .la-ball-circus.la-sm { width: 8px; height: 8px; } .la-ball-circus.la-sm > div { width: 8px; height: 8px; } .la-ball-circus.la-2x { width: 32px; height: 32px; } .la-ball-circus.la-2x > div { width: 32px; height: 32px; } .la-ball-circus.la-3x { width: 48px; height: 48px; } .la-ball-circus.la-3x > div { width: 48px; height: 48px; } /* * Animations */ @keyframes ball-circus-position { 50% { left: 100%; } } @keyframes ball-circus-size { 50% { transform: scale(0.3, 0.3); } }