loading.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*! build: Vue Shop Vite
  2. copyright: https://vue-admin-beautiful.com/shop-vite
  3. */
  4. figure {
  5. position: absolute;
  6. top: 0;
  7. right: 0;
  8. bottom: 0;
  9. left: 0;
  10. width: 6.25em;
  11. height: 6.25em;
  12. margin: auto;
  13. animation: rotate 2.4s linear infinite;
  14. }
  15. .white {
  16. top: 0;
  17. right: 0;
  18. bottom: 0;
  19. left: 0;
  20. background: white;
  21. opacity: 0;
  22. animation: flash 2.4s linear infinite;
  23. }
  24. .dot {
  25. position: absolute;
  26. width: 1.8em;
  27. height: 1.8em;
  28. margin: auto;
  29. border-radius: 100%;
  30. transition: all 1s ease;
  31. }
  32. .dot:nth-child(2) {
  33. top: 0;
  34. bottom: 0;
  35. left: 0;
  36. background: #f56c6c;
  37. animation: dotsY 2.4s linear infinite;
  38. }
  39. .dot:nth-child(3) {
  40. top: 0;
  41. right: 0;
  42. left: 0;
  43. background: #e6a23c;
  44. animation: dotsX 2.4s linear infinite;
  45. }
  46. .dot:nth-child(4) {
  47. top: 0;
  48. right: 0;
  49. bottom: 0;
  50. background: #67c23a;
  51. animation: dotsY 2.4s linear infinite;
  52. }
  53. .dot:nth-child(5) {
  54. right: 0;
  55. bottom: 0;
  56. left: 0;
  57. background: #4e88f3;
  58. animation: dotsX 2.4s linear infinite;
  59. }
  60. @keyframes rotate {
  61. 0% {
  62. transform: rotate(0);
  63. }
  64. 10% {
  65. width: 6.25em;
  66. height: 6.25em;
  67. }
  68. 66% {
  69. width: 1.8em;
  70. height: 1.8em;
  71. }
  72. 100% {
  73. width: 6.25em;
  74. height: 6.25em;
  75. transform: rotate(360deg);
  76. }
  77. }
  78. @keyframes dotsY {
  79. 66% {
  80. width: 1.8em;
  81. }
  82. 77% {
  83. width: 0;
  84. }
  85. }
  86. @keyframes dotsX {
  87. 66% {
  88. height: 1.8em;
  89. }
  90. 77% {
  91. height: 0;
  92. }
  93. }
  94. @keyframes flash {
  95. 33% {
  96. border-radius: 0;
  97. }
  98. 55% {
  99. border-radius: 100%;
  100. }
  101. }