_loading.scss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 : 50px;
  18. height : 50px;
  19. display : flex;
  20. align-items : center;
  21. justify-content: center;
  22. img {
  23. width: 100%;
  24. }
  25. .default {
  26. div {
  27. width : var(--width);
  28. height : var(--width);
  29. background : var(--color);
  30. border-radius: 50%;
  31. display : inline-block;
  32. margin-left : calc(var(--width) * 0.6);
  33. }
  34. div:nth-child(1) {
  35. animation: ui-loading-default 1s -0.5s linear infinite;
  36. }
  37. div:nth-child(2) {
  38. animation: ui-loading-default 1s -0.25s linear infinite;
  39. }
  40. div:nth-child(3) {
  41. animation: ui-loading-default 1s 0s linear infinite;
  42. }
  43. }
  44. }
  45. @keyframes ui-loading-default {
  46. 0% {
  47. transform: scale(1);
  48. opacity : 1;
  49. }
  50. 50% {
  51. transform: scale(0.5);
  52. opacity : 0.5;
  53. }
  54. 100% {
  55. transform: scale(1);
  56. opacity : 0.8;
  57. }
  58. }