You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.6 KiB

4 years ago
  1. /* Chase spinner from https://tobiasahlin.com/spinkit/. MIT license */
  2. .sk-center-wrapper {
  3. width: 100%;
  4. display: flex;
  5. justify-content: space-around;
  6. }
  7. .sk-chase {
  8. position: relative;
  9. animation: sk-chase 2.5s infinite linear both;
  10. }
  11. .sk-chase-dot {
  12. width: 100%;
  13. height: 100%;
  14. position: absolute;
  15. left: 0;
  16. top: 0;
  17. animation: sk-chase-dot 2.0s infinite ease-in-out both;
  18. }
  19. .sk-chase-dot:before {
  20. content: '';
  21. display: block;
  22. width: 25%;
  23. height: 25%;
  24. border-radius: 100%;
  25. animation: sk-chase-dot-before 2.0s infinite ease-in-out both;
  26. background-color: #FFF;
  27. }
  28. .sk-chase.green > .sk-chase-dot:before {
  29. background-color: #00C853;
  30. }
  31. .sk-chase-dot:nth-child(1) { animation-delay: -1.1s; }
  32. .sk-chase-dot:nth-child(2) { animation-delay: -1.0s; }
  33. .sk-chase-dot:nth-child(3) { animation-delay: -0.9s; }
  34. .sk-chase-dot:nth-child(4) { animation-delay: -0.8s; }
  35. .sk-chase-dot:nth-child(5) { animation-delay: -0.7s; }
  36. .sk-chase-dot:nth-child(6) { animation-delay: -0.6s; }
  37. .sk-chase-dot:nth-child(1):before { animation-delay: -1.1s; }
  38. .sk-chase-dot:nth-child(2):before { animation-delay: -1.0s; }
  39. .sk-chase-dot:nth-child(3):before { animation-delay: -0.9s; }
  40. .sk-chase-dot:nth-child(4):before { animation-delay: -0.8s; }
  41. .sk-chase-dot:nth-child(5):before { animation-delay: -0.7s; }
  42. .sk-chase-dot:nth-child(6):before { animation-delay: -0.6s; }
  43. @keyframes sk-chase {
  44. 100% { transform: rotate(360deg); }
  45. }
  46. @keyframes sk-chase-dot {
  47. 80%, 100% { transform: rotate(360deg); }
  48. }
  49. @keyframes sk-chase-dot-before {
  50. 50% {
  51. transform: scale(0.4);
  52. }
  53. 100%, 0% {
  54. transform: scale(1.0);
  55. }
  56. }