index.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="referrer" content="origin" />
  6. <link rel="icon" href="/favicon.ico" />
  7. <meta name="viewport" content="user-scalable=yes" />
  8. </head>
  9. <body>
  10. <div id="app">
  11. <style>
  12. body {
  13. padding: 0;
  14. margin: 0;
  15. overflow: hidden;
  16. }
  17. .loading {
  18. display: flex;
  19. align-items: center;
  20. justify-content: center;
  21. width: 100vw;
  22. height: 100vh;
  23. overflow: hidden;
  24. }
  25. .blobs {
  26. position: absolute;
  27. width: 300px;
  28. height: 300px;
  29. overflow: hidden;
  30. border-radius: 70px;
  31. transform-style: preserve-3d;
  32. }
  33. .blobs .blob-center {
  34. position: absolute;
  35. top: 50%;
  36. left: 50%;
  37. width: 30px;
  38. height: 30px;
  39. background: #2b4bf1;
  40. border-radius: 50%;
  41. box-shadow: 0 -10px 40px -5px #2b4bf1;
  42. transform: scale(0.9) translate(-50%, -50%);
  43. transform-origin: left top;
  44. transform-style: preserve-3d;
  45. animation: blob-grow_2 linear 3.4s infinite;
  46. }
  47. .blob {
  48. position: absolute;
  49. top: 50%;
  50. left: 50%;
  51. width: 30px;
  52. height: 30px;
  53. background: #2b4bf1;
  54. border-radius: 50%;
  55. opacity: 0;
  56. transform: scale(0.9) translate(-50%, -50%);
  57. transform-origin: center top;
  58. animation: blobs_2 ease-out 3.4s infinite;
  59. }
  60. .blob:nth-child(1) {
  61. animation-delay: 0.2s;
  62. }
  63. .blob:nth-child(2) {
  64. animation-delay: 0.4s;
  65. }
  66. .blob:nth-child(3) {
  67. animation-delay: 0.6s;
  68. }
  69. .blob:nth-child(4) {
  70. animation-delay: 0.8s;
  71. }
  72. .blob:nth-child(5) {
  73. animation-delay: 1s;
  74. }
  75. /* stylelint-disable-next-line keyframes-name-pattern */
  76. @keyframes blobs_2 {
  77. 0% {
  78. opacity: 0;
  79. transform: scale(0) translate(calc(-330px - 50%), -50%);
  80. }
  81. 1% {
  82. opacity: 1;
  83. }
  84. 35%,
  85. 65% {
  86. opacity: 1;
  87. transform: scale(0.9) translate(-50%, -50%);
  88. }
  89. 99% {
  90. opacity: 1;
  91. }
  92. 100% {
  93. opacity: 0;
  94. transform: scale(0) translate(calc(330px - 50%), -50%);
  95. }
  96. }
  97. /* stylelint-disable-next-line keyframes-name-pattern */
  98. @keyframes blob-grow_2 {
  99. 0% {
  100. transform: scale(0) translate(-50%, -50%);
  101. }
  102. 39% {
  103. transform: scale(0) translate(-50%, -50%);
  104. }
  105. 40%,
  106. 42% {
  107. transform: scale(1, 0.9) translate(-50%, -50%);
  108. }
  109. 43%,
  110. 44% {
  111. transform: scale(1.2, 1.1) translate(-50%, -50%);
  112. }
  113. 45%,
  114. 46% {
  115. transform: scale(1.3, 1.2) translate(-50%, -50%);
  116. }
  117. 47%,
  118. 48% {
  119. transform: scale(1.4, 1.3) translate(-50%, -50%);
  120. }
  121. 52% {
  122. transform: scale(1.5, 1.4) translate(-50%, -50%);
  123. }
  124. 54% {
  125. transform: scale(1.7, 1.6) translate(-50%, -50%);
  126. }
  127. 58% {
  128. transform: scale(1.8, 1.7) translate(-50%, -50%);
  129. }
  130. 68%,
  131. 70% {
  132. transform: scale(1.7, 1.5) translate(-50%, -50%);
  133. }
  134. 78% {
  135. transform: scale(1.6, 1.4) translate(-50%, -50%);
  136. }
  137. 80%,
  138. 81% {
  139. transform: scale(1.5, 1.4) translate(-50%, -50%);
  140. }
  141. 82%,
  142. 83% {
  143. transform: scale(1.4, 1.3) translate(-50%, -50%);
  144. }
  145. 84%,
  146. 85% {
  147. transform: scale(1.3, 1.2) translate(-50%, -50%);
  148. }
  149. 86%,
  150. 87% {
  151. transform: scale(1.2, 1.1) translate(-50%, -50%);
  152. }
  153. 90%,
  154. 91% {
  155. transform: scale(1, 0.9) translate(-50%, -50%);
  156. }
  157. 92%,
  158. 100% {
  159. transform: scale(0) translate(-50%, -50%);
  160. }
  161. }
  162. </style>
  163. <div class="loading">
  164. <div class="blobs">
  165. <div class="blob-center"></div>
  166. <div class="blob"></div>
  167. <div class="blob"></div>
  168. <div class="blob"></div>
  169. <div class="blob"></div>
  170. <div class="blob"></div>
  171. <div class="blob"></div>
  172. </div>
  173. <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  174. <defs>
  175. <filter id="goo">
  176. <feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur"></feGaussianBlur>
  177. <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7" result="goo">
  178. </feColorMatrix>
  179. <feBlend in="SourceGraphic" in2="goo"></feBlend>
  180. </filter>
  181. </defs>
  182. </svg>
  183. </div>
  184. </div>
  185. </body>
  186. </html>