loading-antd.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <style>
  2. html {
  3. /* same as ant-design-vue/dist/reset.css setting, avoid the title line-height changed */
  4. line-height: 1.15;
  5. }
  6. .dark .loading {
  7. background-color: #0d0d10;
  8. }
  9. .dark .loading .title {
  10. color: rgb(255 255 255 / 85%);
  11. }
  12. .loading {
  13. display: flex;
  14. flex-direction: column;
  15. align-items: center;
  16. justify-content: center;
  17. width: 100%;
  18. height: 100%;
  19. background-color: #f4f7f9;
  20. }
  21. .loading .dots {
  22. display: flex;
  23. align-items: center;
  24. justify-content: center;
  25. padding: 98px;
  26. }
  27. .loading .title {
  28. margin-top: 36px;
  29. font-size: 30px;
  30. font-weight: 600;
  31. color: rgb(0 0 0 / 85%);
  32. }
  33. .dot {
  34. position: relative;
  35. box-sizing: border-box;
  36. display: inline-block;
  37. width: 48px;
  38. height: 48px;
  39. margin-top: 30px;
  40. font-size: 32px;
  41. transform: rotate(45deg);
  42. animation: rotate-ani 1.2s infinite linear;
  43. }
  44. .dot i {
  45. position: absolute;
  46. display: block;
  47. width: 20px;
  48. height: 20px;
  49. background-color: #0065cc;
  50. border-radius: 100%;
  51. opacity: 0.3;
  52. transform: scale(0.75);
  53. transform-origin: 50% 50%;
  54. animation: spin-move-ani 1s infinite linear alternate;
  55. }
  56. .dot i:nth-child(1) {
  57. top: 0;
  58. left: 0;
  59. }
  60. .dot i:nth-child(2) {
  61. top: 0;
  62. right: 0;
  63. animation-delay: 0.4s;
  64. }
  65. .dot i:nth-child(3) {
  66. right: 0;
  67. bottom: 0;
  68. animation-delay: 0.8s;
  69. }
  70. .dot i:nth-child(4) {
  71. bottom: 0;
  72. left: 0;
  73. animation-delay: 1.2s;
  74. }
  75. @keyframes rotate-ani {
  76. to {
  77. transform: rotate(405deg);
  78. }
  79. }
  80. @keyframes spin-move-ani {
  81. to {
  82. opacity: 1;
  83. }
  84. }
  85. </style>
  86. <div class="loading">
  87. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  88. <div class="title"><%= VITE_GLOB_APP_TITLE %></div>
  89. </div>