loading.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" />
  7. <style>
  8. #loadingPage {
  9. background-color: #dedede;
  10. font-size: 12px;
  11. }
  12. .base {
  13. left: 50%;
  14. position: absolute;
  15. top: 50%;
  16. transform: translate(-50%, -50%);
  17. }
  18. .desc {
  19. margin: 0, 0, 20px, 0;
  20. }
  21. .loading,
  22. .loading > div {
  23. position: relative;
  24. box-sizing: border-box;
  25. }
  26. .loading {
  27. display: block;
  28. font-size: 0;
  29. color: #06b359;
  30. }
  31. .loading.la-dark {
  32. color: #07C160;
  33. }
  34. .loading > div {
  35. display: inline-block;
  36. float: none;
  37. background-color: currentColor;
  38. border: 0 solid currentColor;
  39. }
  40. .loading {
  41. width: 92px;
  42. height: 92px;
  43. }
  44. .loading > div {
  45. position: absolute;
  46. top: 50%;
  47. left: 50%;
  48. background: transparent;
  49. border-style: solid;
  50. border-width: 2px;
  51. border-radius: 100%;
  52. animation: ball-clip-rotate-multiple-rotate 1s ease-in-out infinite;
  53. }
  54. .loading > div:first-child {
  55. position: absolute;
  56. width: 92px;
  57. height: 92px;
  58. border-right-color: transparent;
  59. border-left-color: transparent;
  60. }
  61. .loading > div:last-child {
  62. width: 16px;
  63. height: 16px;
  64. border-top-color: transparent;
  65. border-bottom-color: transparent;
  66. animation-duration: 0.5s;
  67. animation-direction: reverse;
  68. }
  69. @keyframes ball-clip-rotate-multiple-rotate {
  70. 0% {
  71. transform: translate(-50%, -50%) rotate(0deg);
  72. }
  73. 50% {
  74. transform: translate(-50%, -50%) rotate(180deg);
  75. }
  76. 100% {
  77. transform: translate(-50%, -50%) rotate(360deg);
  78. }
  79. }
  80. </style>
  81. </head>
  82. <body>
  83. <div id="boot">
  84. <div class='base'>
  85. <div class="loading">
  86. <div></div>
  87. <div></div>
  88. </div>
  89. </div>
  90. </div>
  91. </body>
  92. </html>