1
0

loading.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <style data-app-loading="inject-css">
  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. .loading {
  7. position: fixed;
  8. top: 0;
  9. left: 0;
  10. z-index: 9999;
  11. display: flex;
  12. flex-direction: column;
  13. align-items: center;
  14. justify-content: center;
  15. width: 100%;
  16. height: 100%;
  17. overflow: hidden;
  18. background-color: #f4f7f9;
  19. /* transition: all 0.8s ease-out; */
  20. }
  21. .loading.hidden {
  22. pointer-events: none;
  23. visibility: hidden;
  24. opacity: 0;
  25. transition: all 0.6s ease-out;
  26. }
  27. .dark .loading {
  28. background: #0d0d10;
  29. }
  30. .title {
  31. margin-top: 66px;
  32. font-size: 28px;
  33. font-weight: 600;
  34. color: rgb(0 0 0 / 85%);
  35. }
  36. .dark .title {
  37. color: #fff;
  38. }
  39. .loader {
  40. position: relative;
  41. width: 48px;
  42. height: 48px;
  43. }
  44. .loader::before {
  45. position: absolute;
  46. top: 60px;
  47. left: 0;
  48. width: 48px;
  49. height: 5px;
  50. content: '';
  51. background: hsl(var(--primary) / 50%);
  52. border-radius: 50%;
  53. animation: shadow-ani 0.5s linear infinite;
  54. }
  55. .loader::after {
  56. position: absolute;
  57. top: 0;
  58. left: 0;
  59. width: 100%;
  60. height: 100%;
  61. content: '';
  62. background: hsl(var(--primary));
  63. border-radius: 4px;
  64. animation: jump-ani 0.5s linear infinite;
  65. }
  66. @keyframes jump-ani {
  67. 15% {
  68. border-bottom-right-radius: 3px;
  69. }
  70. 25% {
  71. transform: translateY(9px) rotate(22.5deg);
  72. }
  73. 50% {
  74. border-bottom-right-radius: 40px;
  75. transform: translateY(18px) scale(1, 0.9) rotate(45deg);
  76. }
  77. 75% {
  78. transform: translateY(9px) rotate(67.5deg);
  79. }
  80. 100% {
  81. transform: translateY(0) rotate(90deg);
  82. }
  83. }
  84. @keyframes shadow-ani {
  85. 0%,
  86. 100% {
  87. transform: scale(1, 1);
  88. }
  89. 50% {
  90. transform: scale(1.2, 1);
  91. }
  92. }
  93. </style>
  94. <div class="loading" id="__app-loading__">
  95. <div class="loader"></div>
  96. <div class="title"><%= VITE_GLOB_APP_TITLE %></div>
  97. </div>