index.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <!DOCTYPE html>
  2. <html lang="">
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="icon" href="/favicon.ico">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>商小川</title>
  8. <style type="text/css">
  9. .first-loading-wrp {
  10. position: absolute;
  11. top: 0;
  12. left: 0;
  13. right: 0;
  14. bottom: 0;
  15. display: flex;
  16. flex-direction: column;
  17. align-items: center;
  18. justify-content: center;
  19. height: 90vh;
  20. min-height: 90vh;
  21. z-index: 10000;
  22. }
  23. .first-loading-wrp > h1 {
  24. font-size: 30px;
  25. font-weight: bolder;
  26. }
  27. .first-loading-wrp .loading-wrp {
  28. display: flex;
  29. align-items: center;
  30. justify-content: center;
  31. padding: 98px;
  32. }
  33. .dot {
  34. position: relative;
  35. box-sizing: border-box;
  36. display: inline-block;
  37. width: 64px;
  38. height: 64px;
  39. font-size: 64px;
  40. transform: rotate(45deg);
  41. animation: antRotate 1.2s infinite linear;
  42. }
  43. .dot i {
  44. position: absolute;
  45. display: block;
  46. width: 28px;
  47. height: 28px;
  48. background-color: #1890ff;
  49. border-radius: 100%;
  50. opacity: 0.3;
  51. transform: scale(0.75);
  52. transform-origin: 50% 50%;
  53. animation: antSpinMove 1s infinite linear alternate;
  54. }
  55. .dot i:nth-child(1) {
  56. top: 0;
  57. left: 0;
  58. }
  59. .dot i:nth-child(2) {
  60. top: 0;
  61. right: 0;
  62. -webkit-animation-delay: 0.4s;
  63. animation-delay: 0.4s;
  64. }
  65. .dot i:nth-child(3) {
  66. right: 0;
  67. bottom: 0;
  68. -webkit-animation-delay: 0.8s;
  69. animation-delay: 0.8s;
  70. }
  71. .dot i:nth-child(4) {
  72. bottom: 0;
  73. left: 0;
  74. -webkit-animation-delay: 1.2s;
  75. animation-delay: 1.2s;
  76. }
  77. @keyframes antRotate {
  78. to {
  79. -webkit-transform: rotate(405deg);
  80. transform: rotate(405deg);
  81. }
  82. }
  83. @-webkit-keyframes antRotate {
  84. to {
  85. -webkit-transform: rotate(405deg);
  86. transform: rotate(405deg);
  87. }
  88. }
  89. @keyframes antSpinMove {
  90. to {
  91. opacity: 1;
  92. }
  93. }
  94. @-webkit-keyframes antSpinMove {
  95. to {
  96. opacity: 1;
  97. }
  98. }
  99. @keyframes dot1 {
  100. 0% {
  101. transform: translateY(0);
  102. }
  103. 10% {
  104. transform: translateY(-10px);
  105. }
  106. 20% {
  107. transform: translateY(0);
  108. }
  109. 100% {
  110. transform: translateY(0);
  111. }
  112. }
  113. @-webkit-keyframes dot1 {
  114. 0% {
  115. transform: translateY(0);
  116. }
  117. 10% {
  118. transform: translateY(-10px);
  119. }
  120. 20% {
  121. transform: translateY(0);
  122. }
  123. 100% {
  124. transform: translateY(0);
  125. }
  126. }
  127. @keyframes dot2 {
  128. 0% {
  129. transform: translateY(0);
  130. }
  131. 10% {
  132. transform: translateY(0);
  133. }
  134. 20% {
  135. transform: translateY(-10px);
  136. }
  137. 30% {
  138. transform: translateY(0);
  139. }
  140. 100% {
  141. transform: translateY(0);
  142. }
  143. }
  144. @-webkit-keyframes dot2 {
  145. 0% {
  146. transform: translateY(0);
  147. }
  148. 10% {
  149. transform: translateY(0);
  150. }
  151. 20% {
  152. transform: translateY(-10px);
  153. }
  154. 30% {
  155. transform: translateY(0);
  156. }
  157. 100% {
  158. transform: translateY(0);
  159. }
  160. }
  161. @keyframes dot3 {
  162. 0% {
  163. transform: translateY(0);
  164. }
  165. 20% {
  166. transform: translateY(0);
  167. }
  168. 30% {
  169. transform: translateY(-10px);
  170. }
  171. 40% {
  172. transform: translateY(0);
  173. }
  174. 100% {
  175. transform: translateY(0);
  176. }
  177. }
  178. @-webkit-keyframes dot3 {
  179. 0% {
  180. transform: translateY(0);
  181. }
  182. 20% {
  183. transform: translateY(0);
  184. }
  185. 30% {
  186. transform: translateY(-10px);
  187. }
  188. 40% {
  189. transform: translateY(0);
  190. }
  191. 100% {
  192. transform: translateY(0);
  193. }
  194. }
  195. .first-dot-1 {
  196. animation: dot1 2s infinite linear;
  197. margin: 0 1px;
  198. }
  199. .first-dot-2 {
  200. animation: dot2 2s infinite linear;
  201. margin: 0 1px;
  202. }
  203. .first-dot-3 {
  204. animation: dot3 2s infinite linear;
  205. margin: 0 1px;
  206. }
  207. .loading-text {
  208. font-size: 18px;
  209. display: flex;
  210. color: #101333;
  211. }
  212. </style>
  213. </head>
  214. <body>
  215. <div id="app"></div>
  216. <div class="first-loading-wrp">
  217. <div class="loading-wrp">
  218. <span class="dot dot-spin">
  219. <i></i>
  220. <i></i>
  221. <i></i>
  222. <i></i>
  223. </span>
  224. </div>
  225. <div class="loading-text">努力加载中<div class="first-dot-1">.</div><div class="first-dot-2">.</div><div class="first-dot-3">.</div></div>
  226. </div>
  227. <script type="module" src="/src/main.ts"></script>
  228. </body>
  229. </html>