UNPKG

ngx-spinner

Version:

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

146 lines (129 loc) 2.71 kB
/*! * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/) * Copyright 2015 Daniel Cardoso <@DanielCardoso> * Licensed under MIT */ .la-cog, .la-cog > div { position: relative; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .la-cog { display: block; font-size: 0; color: #fff; } .la-cog.la-dark { color: #333; } .la-cog > div { display: inline-block; float: none; background-color: currentColor; border: 0 solid currentColor; } .la-cog { width: 31px; height: 31px; } .la-cog > div { width: 100%; height: 100%; background-color: transparent; border-style: dashed; border-width: 2px; border-radius: 100%; -webkit-animation: cog-rotate 4s linear infinite; -moz-animation: cog-rotate 4s linear infinite; -o-animation: cog-rotate 4s linear infinite; animation: cog-rotate 4s linear infinite; } .la-cog > div:after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; content: ""; border: 2px solid currentColor; border-radius: 100%; } .la-cog.la-sm { width: 15px; height: 15px; } .la-cog.la-sm > div { border-width: 1px; } .la-cog.la-sm > div:after { border-width: 1px; } .la-cog.la-2x { width: 61px; height: 61px; } .la-cog.la-2x > div { border-width: 4px; } .la-cog.la-2x > div:after { border-width: 4px; } .la-cog.la-3x { width: 91px; height: 91px; } .la-cog.la-3x > div { border-width: 6px; } .la-cog.la-3x > div:after { border-width: 6px; } /* * Animation */ @-webkit-keyframes cog-rotate { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @-moz-keyframes cog-rotate { 0% { -moz-transform: rotate(0deg); transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); transform: rotate(360deg); } } @-o-keyframes cog-rotate { 0% { -o-transform: rotate(0deg); transform: rotate(0deg); } 100% { -o-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes cog-rotate { 0% { -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -o-transform: rotate(360deg); transform: rotate(360deg); } }