index.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="renderer" content="webkit">
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  8. <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  9. <title>
  10. <%= webpackConfig.name %>
  11. </title>
  12. <style>
  13. html,
  14. body,
  15. #app {
  16. height: 100%;
  17. margin: 0px;
  18. padding: 0px;
  19. }
  20. .first-loading-wrp {
  21. display: flex;
  22. flex-direction: column;
  23. align-items: center;
  24. justify-content: center;
  25. height: 90vh;
  26. min-height: 90vh;
  27. }
  28. .first-loading-wrp>h1 {
  29. font-size: 30px;
  30. font-weight: bolder;
  31. }
  32. .first-loading-wrp .loading-wrp {
  33. display: flex;
  34. align-items: center;
  35. justify-content: center;
  36. padding: 98px;
  37. }
  38. .dot {
  39. position: relative;
  40. box-sizing: border-box;
  41. display: inline-block;
  42. width: 64px;
  43. height: 64px;
  44. font-size: 64px;
  45. transform: rotate(45deg);
  46. animation: antRotate 1.2s infinite linear;
  47. }
  48. .dot i {
  49. position: absolute;
  50. display: block;
  51. width: 28px;
  52. height: 28px;
  53. background-color: #1890ff;
  54. border-radius: 100%;
  55. opacity: 0.3;
  56. transform: scale(0.75);
  57. transform-origin: 50% 50%;
  58. animation: antSpinMove 1s infinite linear alternate;
  59. }
  60. .dot i:nth-child(1) {
  61. top: 0;
  62. left: 0;
  63. }
  64. .dot i:nth-child(2) {
  65. top: 0;
  66. right: 0;
  67. -webkit-animation-delay: 0.4s;
  68. animation-delay: 0.4s;
  69. }
  70. .dot i:nth-child(3) {
  71. right: 0;
  72. bottom: 0;
  73. -webkit-animation-delay: 0.8s;
  74. animation-delay: 0.8s;
  75. }
  76. .dot i:nth-child(4) {
  77. bottom: 0;
  78. left: 0;
  79. -webkit-animation-delay: 1.2s;
  80. animation-delay: 1.2s;
  81. }
  82. @keyframes antRotate {
  83. to {
  84. -webkit-transform: rotate(405deg);
  85. transform: rotate(405deg);
  86. }
  87. }
  88. @-webkit-keyframes antRotate {
  89. to {
  90. -webkit-transform: rotate(405deg);
  91. transform: rotate(405deg);
  92. }
  93. }
  94. @keyframes antSpinMove {
  95. to {
  96. opacity: 1;
  97. }
  98. }
  99. @-webkit-keyframes antSpinMove {
  100. to {
  101. opacity: 1;
  102. }
  103. }
  104. </style>
  105. </head>
  106. <body>
  107. <div id="app">
  108. <div class="first-loading-wrp">
  109. <div class="loading-wrp">
  110. <span class="dot dot-spin"> <i></i> <i></i> <i></i> <i></i> </span>
  111. </div>
  112. <h2></h2>
  113. </div>
  114. </div>
  115. </body>
  116. </html>