UNPKG

ngx-spinner

Version:

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

106 lines (86 loc) 1.57 kB
/*! * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/) * Copyright 2015 Daniel Cardoso <@DanielCardoso> * Licensed under MIT */ .la-fire, .la-fire > div { position: relative; box-sizing: border-box; } .la-fire { display: block; font-size: 0; color: #fff; } .la-fire.la-dark { color: #333; } .la-fire > div { display: inline-block; float: none; background-color: currentColor; border: 0 solid currentColor; } .la-fire { width: 32px; height: 32px; } .la-fire > div { position: absolute; bottom: 0; left: 50%; width: 12px; height: 12px; border-radius: 0; border-radius: 2px; transform: translateY(0) translateX(-50%) rotate(45deg) scale(0); animation: fire-diamonds 1.5s infinite linear; } .la-fire > div:nth-child(1) { animation-delay: -0.85s; } .la-fire > div:nth-child(2) { animation-delay: -1.85s; } .la-fire > div:nth-child(3) { animation-delay: -2.85s; } .la-fire.la-sm { width: 16px; height: 16px; } .la-fire.la-sm > div { width: 6px; height: 6px; } .la-fire.la-2x { width: 64px; height: 64px; } .la-fire.la-2x > div { width: 24px; height: 24px; } .la-fire.la-3x { width: 96px; height: 96px; } .la-fire.la-3x > div { width: 36px; height: 36px; } /* * Animation */ @keyframes fire-diamonds { 0% { transform: translateY(75%) translateX(-50%) rotate(45deg) scale(0); } 50% { transform: translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1); } 100% { transform: translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0); } }