loader.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title></title>
  6. <style>
  7. html {
  8. height: 100%;
  9. min-height: 100%;
  10. overflow: hidden;
  11. user-select: none;
  12. -webkit-app-region: no-drag;
  13. }
  14. html body {
  15. background-size: 163px;
  16. font: 14px/21px Monaco, sans-serif;
  17. color: #999;
  18. -webkit-font-smoothing: antialiased;
  19. -webkit-text-size-adjust: 100%;
  20. -moz-text-size-adjust: 100%;
  21. -ms-text-size-adjust: 100%;
  22. text-size-adjust: 100%;
  23. height: 100%;
  24. min-height: 100%;
  25. margin: 0px;
  26. }
  27. html body h4 {
  28. margin: 0;
  29. }
  30. .scene {
  31. position: relative;
  32. display: flex;
  33. justify-content: center;
  34. align-items: center;
  35. height: 100%;
  36. background: #222;
  37. position: relative;
  38. }
  39. .loader {
  40. position: relative;
  41. width: 15em;
  42. height: 15em;
  43. background: linear-gradient(-225deg, #ff3cac 0%, #562b7c 52%, #2b86c5 100%);
  44. border-radius: 50%;
  45. animation: spin 0.5s linear infinite;
  46. }
  47. span {
  48. position: absolute;
  49. width: 100%;
  50. height: 100%;
  51. border-radius: inherit;
  52. background: inherit;
  53. }
  54. span:nth-child(1) {
  55. filter: blur(5px);
  56. }
  57. span:nth-child(2) {
  58. filter: blur(10px);
  59. }
  60. span:nth-child(3) {
  61. filter: blur(25px);
  62. }
  63. span:nth-child(4) {
  64. filter: blur(50px);
  65. }
  66. span::after {
  67. position: absolute;
  68. content: '';
  69. top: 10px;
  70. left: 10px;
  71. right: 10px;
  72. bottom: 10px;
  73. background: #222;
  74. border-radius: inherit;
  75. }
  76. .text {
  77. position: absolute;
  78. opacity: 0;
  79. animation: breath 3s ease-in-out infinite;
  80. }
  81. @keyframes breath {
  82. from {
  83. opacity: 0.05;
  84. }
  85. 50% {
  86. opacity: 1;
  87. }
  88. to {
  89. opacity: 0.05;
  90. }
  91. }
  92. @keyframes spin {
  93. to {
  94. transform: rotate(1turn);
  95. }
  96. }
  97. </style>
  98. </head>
  99. <body>
  100. <div class="scene">
  101. <div class="loader">
  102. <span></span>
  103. <span></span>
  104. <span></span>
  105. <span></span>
  106. </div>
  107. <div class="text">Loading...</div>
  108. </div>
  109. </body>
  110. </html>