_loading.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .ui-loading {
  2. position: absolute;
  3. display: flex;
  4. align-items: center;
  5. justify-content: center;
  6. left: 0;
  7. top: 0;
  8. width: 100%;
  9. height: 100%;
  10. overflow: hidden;
  11. background-color: rgba($color: #000000, $alpha: 0.3);
  12. --width: 15px;
  13. --color: #fff;
  14. }
  15. .ui-loading__box {
  16. position: relative;
  17. width: 100px;
  18. height: 100px;
  19. display: flex;
  20. align-items: center;
  21. justify-content: center;
  22. .default {
  23. div {
  24. width: var(--width);
  25. height: var(--width);
  26. background: var(--color);
  27. border-radius: 50%;
  28. display: inline-block;
  29. margin-left: calc(var(--width));
  30. }
  31. div:nth-child(1) {
  32. animation: ui-loading-default 1s -0.5s linear infinite;
  33. }
  34. div:nth-child(2) {
  35. animation: ui-loading-default 1s -0.25s linear infinite;
  36. }
  37. div:nth-child(3) {
  38. animation: ui-loading-default 1s 0s linear infinite;
  39. }
  40. }
  41. }
  42. @keyframes ui-loading-default {
  43. 0% {
  44. transform: scale(1);
  45. opacity: 1;
  46. }
  47. 50% {
  48. transform: scale(0.5);
  49. opacity: 0.5;
  50. }
  51. 100% {
  52. transform: scale(1);
  53. opacity: 0.8;
  54. }
  55. }