style.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <style>
  2. .loader {
  3. background-color: rgba(0, 0, 0, 0.3);
  4. bottom: 0;
  5. left: 0;
  6. overflow: hidden;
  7. position: fixed;
  8. right: 0;
  9. top: 0;
  10. }
  11. .loader-inner {
  12. bottom: 0;
  13. height: 60px;
  14. left: 0;
  15. margin: auto;
  16. position: absolute;
  17. right: 0;
  18. top: 0;
  19. width: 100px;
  20. }
  21. .loader-line-wrap {
  22. animation:
  23. spin 2000ms cubic-bezier(.175, .885, .32, 1.275) infinite
  24. ;
  25. box-sizing: border-box;
  26. height: 50px;
  27. left: 0;
  28. overflow: hidden;
  29. position: absolute;
  30. top: 0;
  31. transform-origin: 50% 100%;
  32. width: 100px;
  33. }
  34. .loader-line {
  35. border: 4px solid transparent;
  36. border-radius: 100%;
  37. box-sizing: border-box;
  38. height: 100px;
  39. left: 0;
  40. margin: 0 auto;
  41. position: absolute;
  42. right: 0;
  43. top: 0;
  44. width: 100px;
  45. }
  46. .loader-line-wrap:nth-child(1) { animation-delay: -50ms; }
  47. .loader-line-wrap:nth-child(2) { animation-delay: -100ms; }
  48. .loader-line-wrap:nth-child(3) { animation-delay: -150ms; }
  49. .loader-line-wrap:nth-child(4) { animation-delay: -200ms; }
  50. .loader-line-wrap:nth-child(5) { animation-delay: -250ms; }
  51. .loader-line-wrap:nth-child(1) .loader-line {
  52. border-color: hsl(0, 80%, 60%);
  53. height: 90px;
  54. width: 90px;
  55. top: 7px;
  56. }
  57. .loader-line-wrap:nth-child(2) .loader-line {
  58. border-color: hsl(60, 80%, 60%);
  59. height: 76px;
  60. width: 76px;
  61. top: 14px;
  62. }
  63. .loader-line-wrap:nth-child(3) .loader-line {
  64. border-color: hsl(120, 80%, 60%);
  65. height: 62px;
  66. width: 62px;
  67. top: 21px;
  68. }
  69. .loader-line-wrap:nth-child(4) .loader-line {
  70. border-color: hsl(180, 80%, 60%);
  71. height: 48px;
  72. width: 48px;
  73. top: 28px;
  74. }
  75. .loader-line-wrap:nth-child(5) .loader-line {
  76. border-color: hsl(240, 80%, 60%);
  77. height: 34px;
  78. width: 34px;
  79. top: 35px;
  80. }
  81. @keyframes spin {
  82. 0%, 15% {
  83. transform: rotate(0);
  84. }
  85. 100% {
  86. transform: rotate(360deg);
  87. }
  88. }
  89. #loading-text {
  90. position: fixed;
  91. left: 50%;
  92. top: 50%;
  93. transform: translate(-50%, -50%);
  94. }
  95. #loading-text div {
  96. position: relative;
  97. margin-top: 180px;
  98. font-weight: bold;
  99. color: white;
  100. }
  101. </style>