loading.css 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. /*加载动画1*/
  2. .loading1,.loading3 {
  3. position: fixed;
  4. left: 0;
  5. top: 0;
  6. bottom: 0;
  7. right: 0;
  8. display: none;
  9. background-color: transparent;
  10. z-index: 2147483647;
  11. }
  12. .loadEffect {
  13. position: fixed;
  14. width: 200px;
  15. height: 200px;
  16. margin: 0 auto;
  17. margin-top: 100px;
  18. position: relative;
  19. top: 50%;
  20. margin-top: -100px;
  21. }
  22. .loadEffect div {
  23. width: 100%;
  24. height: 100%;
  25. position: absolute;
  26. -webkit-animation: load 2.08s linear infinite;
  27. }
  28. .loadEffect div .bg-danger { background-color: #f43438; }
  29. .loadEffect div .bg-default { background-color: #00bfff; }
  30. .loadEffect div .bg-info { background-color: forestgreen; }
  31. .loadEffect div .bg-success { background-color: greenyellow; }
  32. .loadEffect div .bg-warning { background-color: rosybrown; }
  33. .loadEffect div span {
  34. display: inline-block;
  35. width: 30px;
  36. height: 30px;
  37. border-radius: 50%;
  38. /*background: lightgreen;*/
  39. position: absolute;
  40. left: 50%;
  41. margin-top: -10px;
  42. margin-left: -10px;
  43. }
  44. @-webkit-keyframes load {
  45. 0% { -webkit-transform: rotate(0deg); }
  46. 10% { -webkit-transform: rotate(45deg); }
  47. 50% {
  48. opacity: 1;
  49. -webkit-transform: rotate(160deg);
  50. }
  51. 62% { opacity: 0; }
  52. 65% {
  53. opacity: 0;
  54. -webkit-transform: rotate(200deg);
  55. }
  56. 90% { -webkit-transform: rotate(340deg); }
  57. 100% { -webkit-transform: rotate(360deg); }
  58. }
  59. .loadEffect div:nth-child(1) { -webkit-animation-delay: 0s; }
  60. .loadEffect div:nth-child(2) { -webkit-animation-delay: 0.2s; }
  61. .loadEffect div:nth-child(3) { -webkit-animation-delay: 0.4s; }
  62. .loadEffect div:nth-child(4) { -webkit-animation-delay: 0.6s; }
  63. .loadEffect div:nth-child(5) { -webkit-animation-delay: 0.8s; }
  64. .loadEffect div:nth-child(6) { -webkit-animation-delay: 1s; }
  65. /*加载动画1结束*/
  66. /*#region 加载动画2 */
  67. .loading2 {
  68. position: fixed;
  69. background-image: linear-gradient(0deg, rgba(57, 94, 203, 0) 0%, rgba(54, 87, 190, 0.3) 35%, rgba(36, 33, 97, 0.3) 75%, rgba(26, 5, 49, 0) 100%);
  70. left: 0;
  71. display: none;
  72. right: 0;
  73. bottom: 0;
  74. right: 0;
  75. top: 0;
  76. z-index: 2147483647;
  77. }
  78. .bg0 {
  79. width: 500px;
  80. height: 500px;
  81. top: 50%;
  82. left: 50%;
  83. transform: translate(-50%, -50%);
  84. background: url(./images/bg0.png) no-repeat center center;
  85. background-size: 150%;
  86. }
  87. .bg1 {
  88. width: 100%;
  89. height: 100%;
  90. background: url(./images/bg1.png) no-repeat center center;
  91. }
  92. .hx-box {
  93. top: 50%;
  94. left: 50%;
  95. width: 500px;
  96. height: 500px;
  97. transform-style: preserve-3d;
  98. transform: translate(-50%, -50%) rotateY(75deg);
  99. }
  100. .hx-box ul {
  101. width: 500px;
  102. height: 500px;
  103. transform-style: preserve-3d;
  104. animation: hxz 20s linear infinite;
  105. }
  106. @keyframes hxz {
  107. 0% { transform: rotateX(0deg); }
  108. 100% { transform: rotateX(-360deg); }
  109. }
  110. .hx-box ul li {
  111. width: 500px;
  112. height: 500px;
  113. border: 4px solid #5ec0ff;
  114. border-radius: 1000px;
  115. }
  116. .hx-box ul li span {
  117. display: block;
  118. width: 100%;
  119. height: 100%;
  120. background: url(./images/hx.png) no-repeat center center;
  121. background-size: 100% 100%;
  122. animation: hx 4s linear infinite;
  123. }
  124. @keyframes hx { to { transform: rotate(360deg); } }
  125. .hx-k2 { transform: rotateX(60deg) rotateZ(60deg) }
  126. .hx-k3 { transform: rotateX(-60deg) rotateZ(-60deg) }
  127. .browserupgrade {
  128. margin: .2em 0;
  129. background: #ccc;
  130. color: #000;
  131. padding: .2em 0
  132. }
  133. .dv {
  134. border: 0;
  135. clip: rect(0 0 0 0);
  136. height: 1px;
  137. margin: -1px;
  138. overflow: hidden;
  139. padding: 0;
  140. position: absolute;
  141. width: 1px
  142. }
  143. .dv.dvv:active, .dv.dvv:focus {
  144. clip: auto;
  145. height: auto;
  146. margin: 0;
  147. overflow: visible;
  148. position: static;
  149. width: auto
  150. }
  151. .dn { display: none }
  152. .db { display: block }
  153. .fix:after, .fix:before {
  154. content: " ";
  155. display: table
  156. }
  157. .fix:after { clear: both }
  158. .fl { float: left }
  159. .fr { float: right }
  160. .pr { position: relative }
  161. .pa, .pa0 { position: absolute }
  162. .pa0 {
  163. left: 0;
  164. top: 0
  165. }
  166. .oh { overflow: hidden }
  167. .wh {
  168. width: 100%;
  169. height: 100%
  170. }
  171. .bo { border: 1px solid red }
  172. .mg {
  173. margin-left: auto;
  174. margin-right: auto
  175. }
  176. .tc { text-align: center; }
  177. .wp { margin: 0 auto }
  178. /*#endregion */
  179. /*#region loading3 */
  180. .c {
  181. list-style: none;
  182. margin: 0;
  183. padding: 0;
  184. position: fixed;
  185. width: 5em;
  186. top: 50%;
  187. left: 50%;
  188. transform: translate(-50%, -50%);
  189. }
  190. .c li {
  191. position: absolute;
  192. left: 0;
  193. right: 0;
  194. bottom: 0;
  195. top: 0;
  196. margin: auto;
  197. border-radius: 50%;
  198. -webkit-box-sizing: border-box;
  199. box-sizing: border-box;
  200. display: -webkit-box;
  201. display: -ms-flexbox;
  202. display: flex;
  203. -webkit-box-pack: center;
  204. -ms-flex-pack: center;
  205. justify-content: center;
  206. -webkit-box-align: center;
  207. -ms-flex-align: center;
  208. align-items: center;
  209. -webkit-transform-origin: center center;
  210. transform-origin: center center;
  211. -webkit-animation: anim 1s ease-in-out infinite;
  212. animation: anim 1s ease-in-out infinite;
  213. will-change: transform, filter;
  214. }
  215. .c li:nth-child(1) {
  216. width: 1em;
  217. height: 1em;
  218. }
  219. .c li:nth-child(1):after {
  220. content: '';
  221. display: block;
  222. font-size: 25%;
  223. width: 1em;
  224. height: 1em;
  225. border-radius: 50%;
  226. -webkit-box-shadow: 1em 0 0 rgba(72, 157, 138, 0.2), -1em 0 0 rgba(50, 70, 80, 0.2), 0 1em 0 rgba(211, 75, 76, 0.2), 0 -1em 0 rgba(232, 169, 97, 0.2);
  227. box-shadow: 1em 0 0 rgba(72, 157, 138, 0.2), -1em 0 0 rgba(50, 70, 80, 0.2), 0 1em 0 rgba(211, 75, 76, 0.2), 0 -1em 0 rgba(232, 169, 97, 0.2);
  228. }
  229. .c li:nth-child(2) {
  230. -webkit-animation-delay: .1s;
  231. animation-delay: .1s;
  232. width: 2em;
  233. height: 2em;
  234. }
  235. .c li:nth-child(2):after {
  236. content: '';
  237. display: block;
  238. font-size: 50%;
  239. width: 1em;
  240. height: 1em;
  241. border-radius: 50%;
  242. -webkit-box-shadow: 1.5em 0 0 rgba(72, 157, 138, 0.4), -1.5em 0 0 rgba(50, 70, 80, 0.4), 0 1.5em 0 rgba(211, 75, 76, 0.4), 0 -1.5em 0 rgba(232, 169, 97, 0.4);
  243. box-shadow: 1.5em 0 0 rgba(72, 157, 138, 0.4), -1.5em 0 0 rgba(50, 70, 80, 0.4), 0 1.5em 0 rgba(211, 75, 76, 0.4), 0 -1.5em 0 rgba(232, 169, 97, 0.4);
  244. }
  245. .c li:nth-child(3) {
  246. -webkit-animation-delay: .15s;
  247. animation-delay: .15s;
  248. width: 3em;
  249. height: 3em;
  250. }
  251. .c li:nth-child(3):after {
  252. content: '';
  253. display: block;
  254. font-size: 75%;
  255. width: 1em;
  256. height: 1em;
  257. border-radius: 50%;
  258. -webkit-box-shadow: 2em 0 0 rgba(72, 157, 138, 0.6), -2em 0 0 rgba(50, 70, 80, 0.6), 0 2em 0 rgba(211, 75, 76, 0.6), 0 -2em 0 rgba(232, 169, 97, 0.6);
  259. box-shadow: 2em 0 0 rgba(72, 157, 138, 0.6), -2em 0 0 rgba(50, 70, 80, 0.6), 0 2em 0 rgba(211, 75, 76, 0.6), 0 -2em 0 rgba(232, 169, 97, 0.6);
  260. }
  261. .c li:nth-child(4) {
  262. -webkit-animation-delay: .2s;
  263. animation-delay: .2s;
  264. width: 4em;
  265. height: 4em;
  266. }
  267. .c li:nth-child(4):after {
  268. content: '';
  269. display: block;
  270. font-size: 100%;
  271. width: 1em;
  272. height: 1em;
  273. border-radius: 50%;
  274. -webkit-box-shadow: 2.5em 0 0 rgba(72, 157, 138, 0.8), -2.5em 0 0 rgba(50, 70, 80, 0.8), 0 2.5em 0 rgba(211, 75, 76, 0.8), 0 -2.5em 0 rgba(232, 169, 97, 0.8);
  275. box-shadow: 2.5em 0 0 rgba(72, 157, 138, 0.8), -2.5em 0 0 rgba(50, 70, 80, 0.8), 0 2.5em 0 rgba(211, 75, 76, 0.8), 0 -2.5em 0 rgba(232, 169, 97, 0.8);
  276. }
  277. .c li:nth-child(5) {
  278. -webkit-animation-delay: .25s;
  279. animation-delay: .25s;
  280. width: 5em;
  281. height: 5em;
  282. }
  283. .c li:nth-child(5):after {
  284. content: '';
  285. display: block;
  286. font-size: 125%;
  287. width: 1em;
  288. height: 1em;
  289. border-radius: 50%;
  290. -webkit-box-shadow: 3em 0 0 #489D8A, -3em 0 0 #324650, 0 3em 0 #D34B4C, 0 -3em 0 #E8A961;
  291. box-shadow: 3em 0 0 #489D8A, -3em 0 0 #324650, 0 3em 0 #D34B4C, 0 -3em 0 #E8A961;
  292. }
  293. @-webkit-keyframes anim {
  294. 50% {
  295. -webkit-filter: blur(2px);
  296. filter: blur(2px);
  297. }
  298. 90%, 100% {
  299. -webkit-transform: rotate(1turn);
  300. transform: rotate(1turn);
  301. -webkit-filter: blur(0);
  302. filter: blur(0);
  303. }
  304. }
  305. @keyframes anim {
  306. 50% {
  307. -webkit-filter: blur(2px);
  308. filter: blur(2px);
  309. }
  310. 90%, 100% {
  311. -webkit-transform: rotate(1turn);
  312. transform: rotate(1turn);
  313. -webkit-filter: blur(0);
  314. filter: blur(0);
  315. }
  316. }
  317. /*#endregion */