UNPKG

ngx-spinner

Version:

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

121 lines (102 loc) 1.72 kB
/*! * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/) * Copyright 2015 Daniel Cardoso <@DanielCardoso> * Licensed under MIT */ .la-square-loader, .la-square-loader > div { position: relative; box-sizing: border-box; } .la-square-loader { display: block; font-size: 0; color: #fff; } .la-square-loader.la-dark { color: #333; } .la-square-loader > div { display: inline-block; float: none; background-color: currentColor; border: 0 solid currentColor; } .la-square-loader { width: 32px; height: 32px; } .la-square-loader > div { width: 100%; height: 100%; background: transparent; border-width: 2px; border-radius: 0; animation: square-loader 2s infinite ease; } .la-square-loader > div:after { display: inline-block; width: 100%; vertical-align: top; content: ""; background-color: currentColor; animation: square-loader-inner 2s infinite ease-in; } .la-square-loader.la-sm { width: 16px; height: 16px; } .la-square-loader.la-sm > div { border-width: 1px; } .la-square-loader.la-2x { width: 64px; height: 64px; } .la-square-loader.la-2x > div { border-width: 4px; } .la-square-loader.la-3x { width: 96px; height: 96px; } .la-square-loader.la-3x > div { border-width: 6px; } /* * Animations */ @keyframes square-loader { 0% { transform: rotate(0deg); } 25% { transform: rotate(180deg); } 50% { transform: rotate(180deg); } 75% { transform: rotate(360deg); } 100% { transform: rotate(360deg); } } @keyframes square-loader-inner { 0% { height: 0; } 25% { height: 0; } 50% { height: 100%; } 75% { height: 100%; } 100% { height: 0; } }