index.wxss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /* components/loading/index.wxss */
  2. .loading-container {
  3. width: 100%;
  4. height: 100vh;
  5. overflow: hidden;
  6. background: url('https://klmybwg.4dage.com/mini/wxImg/loading-bg.png') no-repeat center center;
  7. background-size: cover;
  8. display: flex;
  9. flex-direction: column;
  10. justify-content: center;
  11. /* align-items: center; */
  12. position: relative;
  13. }
  14. .car-loading {
  15. width: 100%;
  16. display: flex;
  17. flex-direction: column;
  18. justify-content: center;
  19. align-items: center;
  20. position: relative;
  21. }
  22. .car-container {
  23. width: 100%;
  24. height: 100px;
  25. position: relative;
  26. display: flex;
  27. justify-content: center;
  28. }
  29. .car {
  30. width: 150px;
  31. height: 132px;
  32. background: url('https://klmybwg.4dage.com/mini/wxImg/carLoading.png') 0 0;
  33. position: relative;
  34. bottom: 0;
  35. background-size: 12500% 100%;
  36. animation: car 2s steps(10) infinite;
  37. }
  38. @keyframes car {
  39. from {
  40. background-position: 0 0;
  41. }
  42. to {
  43. background-position: -12500% 0;
  44. }
  45. }
  46. .progress-container {
  47. width: 80%;
  48. max-width: 500px;
  49. position: relative;
  50. display: flex;
  51. flex-direction: column;
  52. align-items: center;
  53. }
  54. .progress-bg {
  55. width: 100%;
  56. height: auto;
  57. }
  58. .custom-progress-bar {
  59. position: absolute;
  60. top: 22%;
  61. left: 22%;
  62. transform: translateY(-50%);
  63. width: 78%;
  64. height: 16px;
  65. padding: 0 10px;
  66. box-sizing: border-box;
  67. background-color: transparent;
  68. }
  69. .progress-fill {
  70. height: 100%;
  71. border-radius: 8px;
  72. background: linear-gradient(to right,
  73. rgba(230, 162, 60, 0) 0%,
  74. rgba(230, 162, 60, 0) 20%,
  75. rgba(230, 162, 60, 0.5) 60%,
  76. rgba(230, 162, 60, 1) 100%);
  77. transition: width 0.3s ease;
  78. }
  79. .progress-text {
  80. margin-top: 10px;
  81. color: #fff;
  82. font-size: 18px;
  83. font-weight: bold;
  84. }
  85. /* Logo页面样式 */
  86. .logo-container {
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. /* justify-content: center; */
  91. padding-top: 30%;
  92. width: 100%;
  93. height: 100%;
  94. overflow: hidden;
  95. }
  96. .logo {
  97. width: 300px;
  98. height: 300px;
  99. background: url('https://klmybwg.4dage.com/mini/wxImg/logo.png') 0 0;
  100. position: relative;
  101. bottom: 0;
  102. background-size: 2400% 100%;
  103. animation: sprite 2s steps(23) 1 forwards;
  104. }
  105. @keyframes sprite {
  106. from {
  107. background-position: 0 0;
  108. }
  109. to {
  110. background-position: -2300% 0;
  111. }
  112. }
  113. .explore-button {
  114. display: flex;
  115. align-items: center;
  116. justify-content: center;
  117. width: auto;
  118. height: 40px;
  119. line-height: 40px;
  120. text-align: center;
  121. color: #ECD6A4;
  122. font-size: 16px;
  123. background-color: transparent;
  124. margin-top: 100px;
  125. animation: buttonFadeIn 1s ease-in-out;
  126. transition: all 0.3s ease;
  127. position: relative;
  128. border: none;
  129. }
  130. .explore-line-left {
  131. width: 125px;
  132. height: 1px;
  133. margin-right: 10px;
  134. background: linear-gradient(90deg, rgba(236, 214, 164, 0) 0%, #ECD6A4 100%);
  135. border-radius: 0px 0px 0px 0px;
  136. opacity: 0.5;
  137. }
  138. .explore-line-right {
  139. width: 125px;
  140. height: 1px;
  141. background: linear-gradient(90deg, #ECD6A4 0%, rgba(236, 214, 164, 0) 100%);
  142. border-radius: 0px 0px 0px 0px;
  143. opacity: 0.5;
  144. margin-left: 10px;
  145. }
  146. @keyframes buttonFadeIn {
  147. from {
  148. opacity: 0;
  149. transform: translateY(20px);
  150. }
  151. to {
  152. opacity: 1;
  153. transform: translateY(0);
  154. }
  155. }