loading.wxss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. /* templates/loading/loading.wxss */
  2. .loading-container {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. width: 100%;
  7. height: 100%;
  8. z-index: 99;
  9. }
  10. .loading-wrapper {
  11. width: 100%;
  12. height: 100%;
  13. display: flex;
  14. justify-content: center;
  15. align-items: center;
  16. }
  17. .loading-box {
  18. background: rgba(255,255,255,1);
  19. box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(194,194,194,0.5);
  20. border-radius: 10rpx;
  21. padding: 8rpx 4rpx;
  22. position: relative;
  23. }
  24. .loading-line {
  25. width: 138rpx;
  26. height: 16rpx;
  27. background: #eee;
  28. border-radius: 100rpx;
  29. margin: 30rpx;
  30. position: relative;
  31. }
  32. .loading-line:nth-last-of-type(1) {
  33. width: 80rpx;
  34. }
  35. .loading-line-len {
  36. position: absolute;
  37. top: 0;
  38. left: 0;
  39. width: 0%;
  40. height: 100%;
  41. background: #ccc;
  42. border-radius: 100rpx;
  43. }
  44. .line-0 {
  45. animation: line0 3s infinite ease-in-out;
  46. }
  47. .line-1 {
  48. animation: line1 3s infinite ease-in-out;
  49. }
  50. .line-2 {
  51. animation: line2 3s infinite ease-in-out;
  52. }
  53. .line-3 {
  54. animation: line3 3s infinite ease-in-out;
  55. }
  56. .loading-pencil {
  57. position: absolute;
  58. top: 30rpx;
  59. left: 34rpx;
  60. width: 133rpx;
  61. height: 157rpx;
  62. animation: pencil 3s infinite 0s ease-in-out;
  63. }
  64. @keyframes line0 {
  65. 0% {
  66. width: 0%;
  67. }
  68. 25%, 100% {
  69. width: 100%;
  70. }
  71. }
  72. @keyframes line1 {
  73. 0%, 25% {
  74. width: 0%;
  75. }
  76. 50%, 100% {
  77. width: 100%;
  78. }
  79. }
  80. @keyframes line2 {
  81. 0%, 50% {
  82. width: 0%;
  83. }
  84. 75%, 100% {
  85. width: 100%;
  86. }
  87. }
  88. @keyframes line3 {
  89. 0%, 75% {
  90. width: 0%;
  91. }
  92. 85%, 100% {
  93. width: 100%;
  94. }
  95. }
  96. @keyframes pencil {
  97. 0%, 100% {
  98. top: 30rpx;
  99. left: 34rpx;
  100. transform: rotate(0);
  101. }
  102. 20% {
  103. top: 30rpx;
  104. left: 138rpx;
  105. }
  106. 25% {
  107. top: 76rpx;
  108. left: 34rpx;
  109. }
  110. 45% {
  111. top: 76rpx;
  112. left: 138rpx;
  113. }
  114. 50% {
  115. top: 122rpx;
  116. left: 34rpx;
  117. }
  118. 70% {
  119. top: 122rpx;
  120. left: 138rpx;
  121. }
  122. 75% {
  123. top: 168rpx;
  124. left: 34rpx;
  125. }
  126. 85% {
  127. top: 168rpx;
  128. left: 80rpx;
  129. }
  130. 86% {
  131. top: 76rpx;
  132. left: 200rpx;
  133. transform: rotate(0);
  134. }
  135. 90%, 95% {
  136. top: 76rpx;
  137. left: 200rpx;
  138. transform: rotate(40deg);
  139. }
  140. }
  141. /* .loading-card {
  142. background: rgba(255,255,255,1);
  143. box-shadow: 0px 4rpx 20rpx 0px rgba(187,199,191,0.5);
  144. border-radius: 18rpx;
  145. margin: 20rpx auto;
  146. padding: 1rpx;
  147. }
  148. .loading-card-row {
  149. display: flex;
  150. justify-content: space-between;
  151. align-items: center;
  152. margin: 0 20rpx;
  153. }
  154. .loading-card-flex {
  155. flex: 1;
  156. }
  157. .loading-card-circle {
  158. width: 50rpx;
  159. height: 50rpx;
  160. border-radius: 50rpx;
  161. margin: 20rpx 20rpx 20rpx 0;
  162. }
  163. .loading-card-rect {
  164. flex: 1;
  165. height: 50rpx;
  166. margin: 20rpx 0;
  167. }
  168. .loading-card-rect-short {
  169. width: 150rpx;
  170. height: 50rpx;
  171. margin: 20rpx 0;
  172. }
  173. .loading-card-rect-length {
  174. width: 300rpx;
  175. height: 50rpx;
  176. margin: 20rpx 0;
  177. }
  178. .loading-card-circle-large {
  179. width: 100rpx;
  180. height: 100rpx;
  181. border-radius: 100rpx;
  182. margin: 20rpx 20rpx 20rpx 0;
  183. }
  184. .loading-card-row:nth-of-type(odd) .loading-card-circle,
  185. .loading-card-row:nth-of-type(odd) .loading-card-circle-large,
  186. .loading-card-row:nth-of-type(odd) .loading-card-rect,
  187. .loading-card-row:nth-of-type(odd) .loading-card-rect-short,
  188. .loading-card-row:nth-of-type(odd) .loading-card-rect-length
  189. {
  190. animation: loading 1s infinite ease-in-out;
  191. }
  192. .loading-card-row:nth-of-type(even) .loading-card-circle,
  193. .loading-card-row:nth-of-type(even) .loading-card-circle-large,
  194. .loading-card-row:nth-of-type(even) .loading-card-rect,
  195. .loading-card-row:nth-of-type(even) .loading-card-rect-short,
  196. .loading-card-row:nth-of-type(even) .loading-card-rect-length
  197. {
  198. animation: loading 2s infinite ease-in-out;
  199. }
  200. @keyframes loading {
  201. 0%, 100% {
  202. background: #e0e0e0;
  203. }
  204. 50% {
  205. background: #efefef;
  206. }
  207. } */
  208. /* .loading {
  209. position: fixed;
  210. top: 0;
  211. left: 0;
  212. width: 100%;
  213. height: 100%;
  214. background: #fff;
  215. display: flex;
  216. flex-direction: column;
  217. justify-content: center;
  218. align-items: center;
  219. }
  220. .loading-img {
  221. margin: 50rpx auto;
  222. width: 60%;
  223. position: relative;
  224. }
  225. .loading-img::after {
  226. content: "";
  227. position: absolute;
  228. bottom: 0;
  229. left: 0;
  230. height: 6rpx;
  231. width: 10%;
  232. background: #999;
  233. border-radius: 20rpx;
  234. animation: line 2s infinite ease-in-out;
  235. }
  236. .loading-img image {
  237. width: 162rpx;
  238. height: 171rpx;
  239. animation: loading 2s infinite ease-in-out;
  240. }
  241. .loading-text {
  242. color: #666;
  243. }
  244. @keyframes loading {
  245. 10% {
  246. transform: translateX(10%)
  247. }
  248. 50% {
  249. transform: translateX(250%)
  250. }
  251. 70% {
  252. transform: translateX(250%) rotate(180deg)
  253. }
  254. 90% {
  255. transform: translateX(10%) rotate(180deg)
  256. }
  257. 100% {
  258. transform: translateX(10%) rotate(0deg)
  259. }
  260. }
  261. @keyframes line {
  262. 10% {
  263. width: 10%;
  264. }
  265. 50%, 70% {
  266. width: 98%;
  267. }
  268. 90%, 100% {
  269. width: 10%;
  270. }
  271. } */