loading.html 1.9 KB

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