loading.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. #loadContent{
  2. width: 100%;
  3. height: 100%;
  4. position: absolute;
  5. top:0px;
  6. left: 0px;
  7. display: none;
  8. }
  9. #loadContent .back_cover{
  10. width: 100%;
  11. height: 100%;
  12. position: absolute;
  13. top:0px;
  14. left: 0px;
  15. background:rgba(255, 255, 255, 0.5);
  16. }
  17. .loading{
  18. width: 40px;
  19. height: 40px;
  20. /* margin: 50px auto; */
  21. position: absolute;
  22. left: 50%;
  23. top: 45%;
  24. }
  25. .loading .circle{
  26. position: absolute;
  27. top:0;
  28. left: 0;
  29. width: 100%;
  30. height: 100%;
  31. }
  32. .circle span{
  33. width: 10px;
  34. height: 10px;
  35. display: inline-block;
  36. background: #527fff;
  37. border-radius: 100%;
  38. position: absolute;
  39. animation: loadingCircle 1.2s infinite ease-in-out;
  40. animation-fill-mode:both;
  41. }
  42. .circle span:nth-child(1){
  43. top: 0;
  44. left: 0;
  45. }
  46. .circle span:nth-child(2){
  47. top: 0;
  48. right: 0;
  49. }
  50. .circle span:nth-child(3){
  51. right: 0;
  52. bottom: 0;
  53. }
  54. .circle span:nth-child(4){
  55. left: 0;
  56. bottom: 0;
  57. }
  58. .loading .circle2{
  59. transform: rotateZ(45deg);
  60. }
  61. .circle2 span:nth-child(1){
  62. animation-delay: -1.01s
  63. }
  64. .circle2 span:nth-child(2){
  65. animation-delay: -0.8s
  66. }
  67. .circle2 span:nth-child(3){
  68. animation-delay: -0.7s
  69. }
  70. .circle2 span:nth-child(4){
  71. animation-delay: -0.2s
  72. }
  73. .loading .circle3{
  74. transform: rotateZ(90deg);
  75. }
  76. .circle3 span:nth-child(1){
  77. animation-delay: -1.0s
  78. }
  79. .circle3 span:nth-child(2){
  80. animation-delay: -0.7s
  81. }
  82. .circle3 span:nth-child(3){
  83. animation-delay: -0.4s
  84. }
  85. .circle3 span:nth-child(4){
  86. animation-delay: -0.1s
  87. }
  88. .circle1 span:nth-child(2){
  89. animation-delay: -0.9s
  90. }
  91. .circle1 span:nth-child(3){
  92. animation-delay: -0.6s
  93. }
  94. .circle1 span:nth-child(4){
  95. animation-delay: -0.3s
  96. }
  97. @keyframes loadingCircle {
  98. 0%{transform: scale(0.0);}
  99. 40%{transform: scale(1.0);}
  100. 80%{transform: scale(0.0);}
  101. 100%{transform: scale(0.0);}
  102. }
  103. /* loading菊花旋转 */
  104. #loading_mask {
  105. width: 100%;
  106. height: 100%;
  107. position: absolute;
  108. top:0px;
  109. left: 0px;
  110. display: none;
  111. }
  112. .loading_wrapper{
  113. background: rgba(0, 0, 0, 0.7);
  114. width: 560px;
  115. height: 310px;
  116. position: absolute;
  117. top: 0;
  118. right: 0;
  119. bottom: 0;
  120. left: 0;
  121. margin: auto;
  122. border-radius: 10px;
  123. }
  124. .loading_icon_wrapper{
  125. display: flex;
  126. align-items: center;
  127. justify-content: center;
  128. }
  129. .loading_title{
  130. display: flex;
  131. align-items: center;
  132. justify-content: center;
  133. margin-top: 40px;
  134. color: #ffffff;
  135. font-size: 36px;
  136. line-height: 54px;
  137. }
  138. .loading_icon{
  139. height: 72px;
  140. width: 72px;
  141. display: inline-block;
  142. position: relative;
  143. margin-top: 60px;
  144. }
  145. .loading_point{
  146. width: 6px;
  147. height: 6px;
  148. border-radius: 12px;
  149. background: #FFFFFF;
  150. margin-right: 4px;
  151. }
  152. #circle-center {
  153. background: rgb(75 75 75);
  154. position: absolute;
  155. top: 19px;
  156. left: 19px;
  157. width: 36px;
  158. height: 36px;
  159. border-radius: 18px;
  160. }
  161. .load-line {
  162. position: absolute;
  163. top: 34px;
  164. left: 0px;
  165. width: 72px;
  166. height: 6px;
  167. }
  168. .load-line > span {
  169. display: inline-block;
  170. width: 50%;
  171. height: 100%;
  172. border-radius: 3px;
  173. background: white;
  174. }
  175. .left {
  176. float: left;
  177. }
  178. .right {
  179. float: right;
  180. }
  181. .rotate-0 {
  182. transform: rotate(0);
  183. }
  184. .rotate-0 > .left {
  185. animation: load-effect 1.2s linear 0s infinite;
  186. }
  187. .rotate-0 > .right {
  188. animation: load-effect 1.2s linear 0.6s infinite;
  189. }
  190. .rotate-30 {
  191. transform: rotate(30deg);
  192. }
  193. .rotate-30 > .left {
  194. animation: load-effect 1.2s linear 0.1s infinite;
  195. }
  196. .rotate-30 > .right {
  197. animation: load-effect 1.2s linear 0.7s infinite;
  198. }
  199. .rotate-60 {
  200. transform: rotate(60deg);
  201. }
  202. .rotate-60 > .left {
  203. animation: load-effect 1.2s linear 0.2s infinite;
  204. }
  205. .rotate-60 > .right {
  206. animation: load-effect 1.2s linear 0.8s infinite;
  207. }
  208. .rotate-90 {
  209. transform: rotate(90deg);
  210. }
  211. .rotate-90 > .left {
  212. animation: load-effect 1.2s linear 0.3s infinite;
  213. }
  214. .rotate-90 > .right {
  215. animation: load-effect 1.2s linear 0.9s infinite;
  216. }
  217. .rotate-120 {
  218. transform: rotate(120deg);
  219. }
  220. .rotate-120 > .left {
  221. animation: load-effect 1.2s linear 0.4s infinite;
  222. }
  223. .rotate-120 > .right {
  224. animation: load-effect 1.2s linear 1.0s infinite;
  225. }
  226. .rotate-150 {
  227. transform: rotate(150deg);
  228. }
  229. .rotate-150 > .left {
  230. animation: load-effect 1.2s linear 0.5s infinite;
  231. }
  232. .rotate-150 > .right {
  233. animation: load-effect 1.2s linear 1.1s infinite;
  234. }
  235. @keyframes load-effect {
  236. 0% {
  237. opacity: 0;
  238. }
  239. 100% {
  240. opacity: 1;
  241. }
  242. }