• 【css | loading】各种简单的loading特效


    先看一下简单的效果图

     线上预览

    https://code.juejin.cn/pen/7278511766991339579

    代码

    HTML

    1. <section>
    2. <div class="sk-rotating-plane">div>
    3. section>
    4. <section>
    5. <div class="sk-double-bounce">
    6. <div class="sk-child sk-double-bounce-1">div>
    7. <div class="sk-child sk-double-bounce-2">div>
    8. div>
    9. section>
    10. <section>
    11. <div class="sk-wave">
    12. <div class="sk-rect sk-rect-1">div>
    13. <div class="sk-rect sk-rect-2">div>
    14. <div class="sk-rect sk-rect-3">div>
    15. <div class="sk-rect sk-rect-4">div>
    16. <div class="sk-rect sk-rect-5">div>
    17. div>
    18. section>
    19. <section>
    20. <div class="sk-wandering-cubes">
    21. <div class="sk-cube sk-cube-1">div>
    22. <div class="sk-cube sk-cube-2">div>
    23. div>
    24. section>
    25. <section>
    26. <div class="sk-spinner sk-spinner-pulse">div>
    27. section>
    28. <section>
    29. <div class="sk-chasing-dots">
    30. <div class="sk-child sk-dot-1">div>
    31. <div class="sk-child sk-dot-2">div>
    32. div>
    33. section>
    34. <section>
    35. <div class="sk-three-bounce">
    36. <div class="sk-bounce-1 sk-child">div>
    37. <div class="sk-bounce-2 sk-child">div>
    38. <div class="sk-bounce-3 sk-child">div>
    39. div>
    40. section>
    41. <section>
    42. <div class="sk-circle-bounce">
    43. <div class="sk-child sk-circle-1">div>
    44. <div class="sk-child sk-circle-2">div>
    45. <div class="sk-child sk-circle-3">div>
    46. <div class="sk-child sk-circle-4">div>
    47. <div class="sk-child sk-circle-5">div>
    48. <div class="sk-child sk-circle-6">div>
    49. <div class="sk-child sk-circle-7">div>
    50. <div class="sk-child sk-circle-8">div>
    51. <div class="sk-child sk-circle-9">div>
    52. <div class="sk-child sk-circle-10">div>
    53. <div class="sk-child sk-circle-11">div>
    54. <div class="sk-child sk-circle-12">div>
    55. div>
    56. section>
    57. <section>
    58. <div class="sk-cube-grid">
    59. <div class="sk-cube sk-cube-1">div>
    60. <div class="sk-cube sk-cube-2">div>
    61. <div class="sk-cube sk-cube-3">div>
    62. <div class="sk-cube sk-cube-4">div>
    63. <div class="sk-cube sk-cube-5">div>
    64. <div class="sk-cube sk-cube-6">div>
    65. <div class="sk-cube sk-cube-7">div>
    66. <div class="sk-cube sk-cube-8">div>
    67. <div class="sk-cube sk-cube-9">div>
    68. div>
    69. section>
    70. <section>
    71. <div class="sk-fading-circle">
    72. <div class="sk-circle sk-circle-1">div>
    73. <div class="sk-circle sk-circle-2">div>
    74. <div class="sk-circle sk-circle-3">div>
    75. <div class="sk-circle sk-circle-4">div>
    76. <div class="sk-circle sk-circle-5">div>
    77. <div class="sk-circle sk-circle-6">div>
    78. <div class="sk-circle sk-circle-7">div>
    79. <div class="sk-circle sk-circle-8">div>
    80. <div class="sk-circle sk-circle-9">div>
    81. <div class="sk-circle sk-circle-10">div>
    82. <div class="sk-circle sk-circle-11">div>
    83. <div class="sk-circle sk-circle-12">div>
    84. div>
    85. section>
    86. <section>
    87. <div class="sk-folding-cube">
    88. <div class="sk-cube sk-cube-1">div>
    89. <div class="sk-cube sk-cube-2">div>
    90. <div class="sk-cube sk-cube-4">div>
    91. <div class="sk-cube sk-cube-3">div>
    92. div>
    93. section>
    94. <section>section>

     css

    1. body {
    2. background-color: rgba(0, 0, 0, 0.9);
    3. min-height: 95vh;
    4. display: flex;
    5. flex-wrap: wrap;
    6. justify-content: space-around;
    7. align-content: space-around;
    8. }
    9. section {
    10. flex: 1 1 25%;
    11. }
    12. .sk-rotating-plane {
    13. width: 4em;
    14. height: 4em;
    15. margin: auto;
    16. background-color: #337ab7;
    17. -webkit-animation: sk-rotating-plane 1.2s infinite ease-in-out;
    18. animation: sk-rotating-plane 1.2s infinite ease-in-out;
    19. }
    20. @-webkit-keyframes sk-rotating-plane {
    21. 0% {
    22. -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    23. transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    24. }
    25. 50% {
    26. -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    27. transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    28. }
    29. 100% {
    30. -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    31. transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    32. }
    33. }
    34. @keyframes sk-rotating-plane {
    35. 0% {
    36. -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    37. transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    38. }
    39. 50% {
    40. -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    41. transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    42. }
    43. 100% {
    44. -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    45. transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    46. }
    47. }
    48. .sk-double-bounce {
    49. width: 4em;
    50. height: 4em;
    51. position: relative;
    52. margin: auto;
    53. }
    54. .sk-double-bounce .sk-child {
    55. width: 100%;
    56. height: 100%;
    57. border-radius: 50%;
    58. background-color: #337ab7;
    59. opacity: 0.6;
    60. position: absolute;
    61. top: 0;
    62. left: 0;
    63. -webkit-animation: sk-double-bounce 2s infinite ease-in-out;
    64. animation: sk-double-bounce 2s infinite ease-in-out;
    65. }
    66. .sk-double-bounce .sk-double-bounce-2 {
    67. -webkit-animation-delay: -1s;
    68. animation-delay: -1s;
    69. }
    70. @-webkit-keyframes sk-double-bounce {
    71. 0%,
    72. 100% {
    73. -webkit-transform: scale(0);
    74. transform: scale(0);
    75. }
    76. 50% {
    77. -webkit-transform: scale(1);
    78. transform: scale(1);
    79. }
    80. }
    81. @keyframes sk-double-bounce {
    82. 0%,
    83. 100% {
    84. -webkit-transform: scale(0);
    85. transform: scale(0);
    86. }
    87. 50% {
    88. -webkit-transform: scale(1);
    89. transform: scale(1);
    90. }
    91. }
    92. .sk-wave {
    93. width: 6em;
    94. height: 4em;
    95. margin: auto;
    96. text-align: center;
    97. font-size: 1em;
    98. }
    99. .sk-wave .sk-rect {
    100. background-color: #337ab7;
    101. height: 100%;
    102. width: 0.5em;
    103. display: inline-block;
    104. -webkit-animation: sk-wave-stretch-delay 1.2s infinite ease-in-out;
    105. animation: sk-wave-stretch-delay 1.2s infinite ease-in-out;
    106. }
    107. .sk-wave .sk-rect-1 {
    108. -webkit-animation-delay: -1.2s;
    109. animation-delay: -1.2s;
    110. }
    111. .sk-wave .sk-rect-2 {
    112. -webkit-animation-delay: -1.1s;
    113. animation-delay: -1.1s;
    114. }
    115. .sk-wave .sk-rect-3 {
    116. -webkit-animation-delay: -1s;
    117. animation-delay: -1s;
    118. }
    119. .sk-wave .sk-rect-4 {
    120. -webkit-animation-delay: -0.9s;
    121. animation-delay: -0.9s;
    122. }
    123. .sk-wave .sk-rect-5 {
    124. -webkit-animation-delay: -0.8s;
    125. animation-delay: -0.8s;
    126. }
    127. @-webkit-keyframes sk-wave-stretch-delay {
    128. 0%,
    129. 40%,
    130. 100% {
    131. -webkit-transform: scaleY(0.4);
    132. transform: scaleY(0.4);
    133. }
    134. 20% {
    135. -webkit-transform: scaleY(1);
    136. transform: scaleY(1);
    137. }
    138. }
    139. @keyframes sk-wave-stretch-delay {
    140. 0%,
    141. 40%,
    142. 100% {
    143. -webkit-transform: scaleY(0.4);
    144. transform: scaleY(0.4);
    145. }
    146. 20% {
    147. -webkit-transform: scaleY(1);
    148. transform: scaleY(1);
    149. }
    150. }
    151. .sk-wandering-cubes {
    152. width: 4em;
    153. height: 4em;
    154. position: relative;
    155. margin: auto;
    156. }
    157. .sk-wandering-cubes .sk-cube {
    158. background-color: #337ab7;
    159. width: 1em;
    160. height: 1em;
    161. position: absolute;
    162. top: 0;
    163. left: 0;
    164. -webkit-animation: sk-wandering-cubes 1.8s ease-in-out -1.8s infinite both;
    165. animation: sk-wandering-cubes 1.8s ease-in-out -1.8s infinite both;
    166. }
    167. .sk-wandering-cubes .sk-cube-2 {
    168. -webkit-animation-delay: -0.9s;
    169. animation-delay: -0.9s;
    170. }
    171. @-webkit-keyframes sk-wandering-cubes {
    172. 0% {
    173. -webkit-transform: rotate(0deg);
    174. transform: rotate(0deg);
    175. }
    176. 25% {
    177. -webkit-transform: translateX(2em) rotate(-90deg) scale(0.5);
    178. transform: translateX(2em) rotate(-90deg) scale(0.5);
    179. }
    180. 50% {
    181. /* Hack to make FF rotate in the right direction */
    182. -webkit-transform: translateX(2em) translateY(2em) rotate(-179deg);
    183. transform: translateX(2em) translateY(2em) rotate(-179deg);
    184. }
    185. 50.1% {
    186. -webkit-transform: translateX(2em) translateY(2em) rotate(-180deg);
    187. transform: translateX(2em) translateY(2em) rotate(-180deg);
    188. }
    189. 75% {
    190. -webkit-transform: translateX(0) translateY(2em) rotate(-270deg)
    191. scale(0.5);
    192. transform: translateX(0) translateY(2em) rotate(-270deg) scale(0.5);
    193. }
    194. 100% {
    195. -webkit-transform: rotate(-360deg);
    196. transform: rotate(-360deg);
    197. }
    198. }
    199. @keyframes sk-wandering-cubes {
    200. 0% {
    201. -webkit-transform: rotate(0deg);
    202. transform: rotate(0deg);
    203. }
    204. 25% {
    205. -webkit-transform: translateX(2em) rotate(-90deg) scale(0.5);
    206. transform: translateX(2em) rotate(-90deg) scale(0.5);
    207. }
    208. 50% {
    209. /* Hack to make FF rotate in the right direction */
    210. -webkit-transform: translateX(2em) translateY(2em) rotate(-179deg);
    211. transform: translateX(2em) translateY(2em) rotate(-179deg);
    212. }
    213. 50.1% {
    214. -webkit-transform: translateX(2em) translateY(2em) rotate(-180deg);
    215. transform: translateX(2em) translateY(2em) rotate(-180deg);
    216. }
    217. 75% {
    218. -webkit-transform: translateX(0) translateY(2em) rotate(-270deg)
    219. scale(0.5);
    220. transform: translateX(0) translateY(2em) rotate(-270deg) scale(0.5);
    221. }
    222. 100% {
    223. -webkit-transform: rotate(-360deg);
    224. transform: rotate(-360deg);
    225. }
    226. }
    227. .sk-spinner-pulse {
    228. width: 4em;
    229. height: 4em;
    230. margin: auto;
    231. background-color: #337ab7;
    232. border-radius: 100%;
    233. -webkit-animation: sk-spinner-pulse 1s infinite ease-in-out;
    234. animation: sk-spinner-pulse 1s infinite ease-in-out;
    235. }
    236. @-webkit-keyframes sk-spinner-pulse {
    237. 0% {
    238. -webkit-transform: scale(0);
    239. transform: scale(0);
    240. }
    241. 100% {
    242. -webkit-transform: scale(1);
    243. transform: scale(1);
    244. opacity: 0;
    245. }
    246. }
    247. @keyframes sk-spinner-pulse {
    248. 0% {
    249. -webkit-transform: scale(0);
    250. transform: scale(0);
    251. }
    252. 100% {
    253. -webkit-transform: scale(1);
    254. transform: scale(1);
    255. opacity: 0;
    256. }
    257. }
    258. .sk-chasing-dots {
    259. width: 4em;
    260. height: 4em;
    261. position: relative;
    262. margin: auto;
    263. text-align: center;
    264. -webkit-animation: sk-chasing-dots-rotate 2s infinite linear;
    265. animation: sk-chasing-dots-rotate 2s infinite linear;
    266. }
    267. .sk-chasing-dots .sk-child {
    268. width: 2em;
    269. height: 2em;
    270. display: inline-block;
    271. position: absolute;
    272. top: 0;
    273. background-color: #337ab7;
    274. border-radius: 100%;
    275. -webkit-animation: sk-chasing-dots-bounce 2s infinite ease-in-out;
    276. animation: sk-chasing-dots-bounce 2s infinite ease-in-out;
    277. }
    278. .sk-chasing-dots .sk-dot-2 {
    279. top: auto;
    280. bottom: 0;
    281. -webkit-animation-delay: -1s;
    282. animation-delay: -1s;
    283. }
    284. @-webkit-keyframes sk-chasing-dots-rotate {
    285. 100% {
    286. -webkit-transform: rotate(360deg);
    287. transform: rotate(360deg);
    288. }
    289. }
    290. @keyframes sk-chasing-dots-rotate {
    291. 100% {
    292. -webkit-transform: rotate(360deg);
    293. transform: rotate(360deg);
    294. }
    295. }
    296. @-webkit-keyframes sk-chasing-dots-bounce {
    297. 0%,
    298. 100% {
    299. -webkit-transform: scale(0);
    300. transform: scale(0);
    301. }
    302. 50% {
    303. -webkit-transform: scale(1);
    304. transform: scale(1);
    305. }
    306. }
    307. @keyframes sk-chasing-dots-bounce {
    308. 0%,
    309. 100% {
    310. -webkit-transform: scale(0);
    311. transform: scale(0);
    312. }
    313. 50% {
    314. -webkit-transform: scale(1);
    315. transform: scale(1);
    316. }
    317. }
    318. .sk-three-bounce {
    319. width: 8em;
    320. margin: auto;
    321. text-align: center;
    322. }
    323. .sk-three-bounce .sk-child {
    324. width: 2em;
    325. height: 2em;
    326. background-color: #337ab7;
    327. border-radius: 100%;
    328. display: inline-block;
    329. -webkit-animation: sk-three-bounce 1.4s ease-in-out 0s infinite both;
    330. animation: sk-three-bounce 1.4s ease-in-out 0s infinite both;
    331. }
    332. .sk-three-bounce .sk-bounce-1 {
    333. -webkit-animation-delay: -0.32s;
    334. animation-delay: -0.32s;
    335. }
    336. .sk-three-bounce .sk-bounce-2 {
    337. -webkit-animation-delay: -0.16s;
    338. animation-delay: -0.16s;
    339. }
    340. @-webkit-keyframes sk-three-bounce {
    341. 0%,
    342. 80%,
    343. 100% {
    344. -webkit-transform: scale(0);
    345. transform: scale(0);
    346. }
    347. 40% {
    348. -webkit-transform: scale(1);
    349. transform: scale(1);
    350. }
    351. }
    352. @keyframes sk-three-bounce {
    353. 0%,
    354. 80%,
    355. 100% {
    356. -webkit-transform: scale(0);
    357. transform: scale(0);
    358. }
    359. 40% {
    360. -webkit-transform: scale(1);
    361. transform: scale(1);
    362. }
    363. }
    364. .sk-circle-bounce {
    365. width: 4em;
    366. height: 4em;
    367. position: relative;
    368. margin: auto;
    369. }
    370. .sk-circle-bounce .sk-child {
    371. width: 100%;
    372. height: 100%;
    373. position: absolute;
    374. left: 0;
    375. top: 0;
    376. }
    377. .sk-circle-bounce .sk-child:before {
    378. content: "";
    379. display: block;
    380. margin: 0 auto;
    381. width: 15%;
    382. height: 15%;
    383. background-color: #337ab7;
    384. border-radius: 100%;
    385. -webkit-animation: sk-circle-bounce-delay 1.2s infinite ease-in-out both;
    386. animation: sk-circle-bounce-delay 1.2s infinite ease-in-out both;
    387. }
    388. .sk-circle-bounce .sk-circle-2 {
    389. -webkit-transform: rotate(30deg);
    390. transform: rotate(30deg);
    391. }
    392. .sk-circle-bounce .sk-circle-3 {
    393. -webkit-transform: rotate(60deg);
    394. transform: rotate(60deg);
    395. }
    396. .sk-circle-bounce .sk-circle-4 {
    397. -webkit-transform: rotate(90deg);
    398. transform: rotate(90deg);
    399. }
    400. .sk-circle-bounce .sk-circle-5 {
    401. -webkit-transform: rotate(120deg);
    402. transform: rotate(120deg);
    403. }
    404. .sk-circle-bounce .sk-circle-6 {
    405. -webkit-transform: rotate(150deg);
    406. transform: rotate(150deg);
    407. }
    408. .sk-circle-bounce .sk-circle-7 {
    409. -webkit-transform: rotate(180deg);
    410. transform: rotate(180deg);
    411. }
    412. .sk-circle-bounce .sk-circle-8 {
    413. -webkit-transform: rotate(210deg);
    414. transform: rotate(210deg);
    415. }
    416. .sk-circle-bounce .sk-circle-9 {
    417. -webkit-transform: rotate(240deg);
    418. transform: rotate(240deg);
    419. }
    420. .sk-circle-bounce .sk-circle-10 {
    421. -webkit-transform: rotate(270deg);
    422. transform: rotate(270deg);
    423. }
    424. .sk-circle-bounce .sk-circle-11 {
    425. -webkit-transform: rotate(300deg);
    426. transform: rotate(300deg);
    427. }
    428. .sk-circle-bounce .sk-circle-12 {
    429. -webkit-transform: rotate(330deg);
    430. transform: rotate(330deg);
    431. }
    432. .sk-circle-bounce .sk-circle-2:before {
    433. -webkit-animation-delay: -1.1s;
    434. animation-delay: -1.1s;
    435. }
    436. .sk-circle-bounce .sk-circle-3:before {
    437. -webkit-animation-delay: -1s;
    438. animation-delay: -1s;
    439. }
    440. .sk-circle-bounce .sk-circle-4:before {
    441. -webkit-animation-delay: -0.9s;
    442. animation-delay: -0.9s;
    443. }
    444. .sk-circle-bounce .sk-circle-5:before {
    445. -webkit-animation-delay: -0.8s;
    446. animation-delay: -0.8s;
    447. }
    448. .sk-circle-bounce .sk-circle-6:before {
    449. -webkit-animation-delay: -0.7s;
    450. animation-delay: -0.7s;
    451. }
    452. .sk-circle-bounce .sk-circle-7:before {
    453. -webkit-animation-delay: -0.6s;
    454. animation-delay: -0.6s;
    455. }
    456. .sk-circle-bounce .sk-circle-8:before {
    457. -webkit-animation-delay: -0.5s;
    458. animation-delay: -0.5s;
    459. }
    460. .sk-circle-bounce .sk-circle-9:before {
    461. -webkit-animation-delay: -0.4s;
    462. animation-delay: -0.4s;
    463. }
    464. .sk-circle-bounce .sk-circle-10:before {
    465. -webkit-animation-delay: -0.3s;
    466. animation-delay: -0.3s;
    467. }
    468. .sk-circle-bounce .sk-circle-11:before {
    469. -webkit-animation-delay: -0.2s;
    470. animation-delay: -0.2s;
    471. }
    472. .sk-circle-bounce .sk-circle-12:before {
    473. -webkit-animation-delay: -0.1s;
    474. animation-delay: -0.1s;
    475. }
    476. @-webkit-keyframes sk-circle-bounce-delay {
    477. 0%,
    478. 80%,
    479. 100% {
    480. -webkit-transform: scale(0);
    481. transform: scale(0);
    482. }
    483. 40% {
    484. -webkit-transform: scale(1);
    485. transform: scale(1);
    486. }
    487. }
    488. @keyframes sk-circle-bounce-delay {
    489. 0%,
    490. 80%,
    491. 100% {
    492. -webkit-transform: scale(0);
    493. transform: scale(0);
    494. }
    495. 40% {
    496. -webkit-transform: scale(1);
    497. transform: scale(1);
    498. }
    499. }
    500. .sk-cube-grid {
    501. width: 4em;
    502. height: 4em;
    503. margin: auto;
    504. /*
    505. * Spinner positions
    506. * 1 2 3
    507. * 4 5 6
    508. * 7 8 9
    509. */
    510. }
    511. .sk-cube-grid .sk-cube {
    512. width: 33%;
    513. height: 33%;
    514. background-color: #337ab7;
    515. float: left;
    516. -webkit-animation: sk-cube-grid-scale-delay 1.3s infinite ease-in-out;
    517. animation: sk-cube-grid-scale-delay 1.3s infinite ease-in-out;
    518. }
    519. .sk-cube-grid .sk-cube-1 {
    520. -webkit-animation-delay: 0.2s;
    521. animation-delay: 0.2s;
    522. }
    523. .sk-cube-grid .sk-cube-2 {
    524. -webkit-animation-delay: 0.3s;
    525. animation-delay: 0.3s;
    526. }
    527. .sk-cube-grid .sk-cube-3 {
    528. -webkit-animation-delay: 0.4s;
    529. animation-delay: 0.4s;
    530. }
    531. .sk-cube-grid .sk-cube-4 {
    532. -webkit-animation-delay: 0.1s;
    533. animation-delay: 0.1s;
    534. }
    535. .sk-cube-grid .sk-cube-5 {
    536. -webkit-animation-delay: 0.2s;
    537. animation-delay: 0.2s;
    538. }
    539. .sk-cube-grid .sk-cube-6 {
    540. -webkit-animation-delay: 0.3s;
    541. animation-delay: 0.3s;
    542. }
    543. .sk-cube-grid .sk-cube-7 {
    544. -webkit-animation-delay: 0s;
    545. animation-delay: 0s;
    546. }
    547. .sk-cube-grid .sk-cube-8 {
    548. -webkit-animation-delay: 0.1s;
    549. animation-delay: 0.1s;
    550. }
    551. .sk-cube-grid .sk-cube-9 {
    552. -webkit-animation-delay: 0.2s;
    553. animation-delay: 0.2s;
    554. }
    555. @-webkit-keyframes sk-cube-grid-scale-delay {
    556. 0%,
    557. 70%,
    558. 100% {
    559. -webkit-transform: scale3D(1, 1, 1);
    560. transform: scale3D(1, 1, 1);
    561. }
    562. 35% {
    563. -webkit-transform: scale3D(0, 0, 1);
    564. transform: scale3D(0, 0, 1);
    565. }
    566. }
    567. @keyframes sk-cube-grid-scale-delay {
    568. 0%,
    569. 70%,
    570. 100% {
    571. -webkit-transform: scale3D(1, 1, 1);
    572. transform: scale3D(1, 1, 1);
    573. }
    574. 35% {
    575. -webkit-transform: scale3D(0, 0, 1);
    576. transform: scale3D(0, 0, 1);
    577. }
    578. }
    579. .sk-fading-circle {
    580. width: 4em;
    581. height: 4em;
    582. position: relative;
    583. margin: auto;
    584. }
    585. .sk-fading-circle .sk-circle {
    586. width: 100%;
    587. height: 100%;
    588. position: absolute;
    589. left: 0;
    590. top: 0;
    591. }
    592. .sk-fading-circle .sk-circle:before {
    593. content: "";
    594. display: block;
    595. margin: 0 auto;
    596. width: 15%;
    597. height: 15%;
    598. background-color: #337ab7;
    599. border-radius: 100%;
    600. -webkit-animation: sk-fading-circle-delay 1.2s infinite ease-in-out both;
    601. animation: sk-fading-circle-delay 1.2s infinite ease-in-out both;
    602. }
    603. .sk-fading-circle .sk-circle-2 {
    604. -webkit-transform: rotate(30deg);
    605. transform: rotate(30deg);
    606. }
    607. .sk-fading-circle .sk-circle-3 {
    608. -webkit-transform: rotate(60deg);
    609. transform: rotate(60deg);
    610. }
    611. .sk-fading-circle .sk-circle-4 {
    612. -webkit-transform: rotate(90deg);
    613. transform: rotate(90deg);
    614. }
    615. .sk-fading-circle .sk-circle-5 {
    616. -webkit-transform: rotate(120deg);
    617. transform: rotate(120deg);
    618. }
    619. .sk-fading-circle .sk-circle-6 {
    620. -webkit-transform: rotate(150deg);
    621. transform: rotate(150deg);
    622. }
    623. .sk-fading-circle .sk-circle-7 {
    624. -webkit-transform: rotate(180deg);
    625. transform: rotate(180deg);
    626. }
    627. .sk-fading-circle .sk-circle-8 {
    628. -webkit-transform: rotate(210deg);
    629. transform: rotate(210deg);
    630. }
    631. .sk-fading-circle .sk-circle-9 {
    632. -webkit-transform: rotate(240deg);
    633. transform: rotate(240deg);
    634. }
    635. .sk-fading-circle .sk-circle-10 {
    636. -webkit-transform: rotate(270deg);
    637. transform: rotate(270deg);
    638. }
    639. .sk-fading-circle .sk-circle-11 {
    640. -webkit-transform: rotate(300deg);
    641. transform: rotate(300deg);
    642. }
    643. .sk-fading-circle .sk-circle-12 {
    644. -webkit-transform: rotate(330deg);
    645. transform: rotate(330deg);
    646. }
    647. .sk-fading-circle .sk-circle-2:before {
    648. -webkit-animation-delay: -1.1s;
    649. animation-delay: -1.1s;
    650. }
    651. .sk-fading-circle .sk-circle-3:before {
    652. -webkit-animation-delay: -1s;
    653. animation-delay: -1s;
    654. }
    655. .sk-fading-circle .sk-circle-4:before {
    656. -webkit-animation-delay: -0.9s;
    657. animation-delay: -0.9s;
    658. }
    659. .sk-fading-circle .sk-circle-5:before {
    660. -webkit-animation-delay: -0.8s;
    661. animation-delay: -0.8s;
    662. }
    663. .sk-fading-circle .sk-circle-6:before {
    664. -webkit-animation-delay: -0.7s;
    665. animation-delay: -0.7s;
    666. }
    667. .sk-fading-circle .sk-circle-7:before {
    668. -webkit-animation-delay: -0.6s;
    669. animation-delay: -0.6s;
    670. }
    671. .sk-fading-circle .sk-circle-8:before {
    672. -webkit-animation-delay: -0.5s;
    673. animation-delay: -0.5s;
    674. }
    675. .sk-fading-circle .sk-circle-9:before {
    676. -webkit-animation-delay: -0.4s;
    677. animation-delay: -0.4s;
    678. }
    679. .sk-fading-circle .sk-circle-10:before {
    680. -webkit-animation-delay: -0.3s;
    681. animation-delay: -0.3s;
    682. }
    683. .sk-fading-circle .sk-circle-11:before {
    684. -webkit-animation-delay: -0.2s;
    685. animation-delay: -0.2s;
    686. }
    687. .sk-fading-circle .sk-circle-12:before {
    688. -webkit-animation-delay: -0.1s;
    689. animation-delay: -0.1s;
    690. }
    691. @-webkit-keyframes sk-fading-circle-delay {
    692. 0%,
    693. 39%,
    694. 100% {
    695. opacity: 0;
    696. }
    697. 40% {
    698. opacity: 1;
    699. }
    700. }
    701. @keyframes sk-fading-circle-delay {
    702. 0%,
    703. 39%,
    704. 100% {
    705. opacity: 0;
    706. }
    707. 40% {
    708. opacity: 1;
    709. }
    710. }
    711. .sk-folding-cube {
    712. width: 4em;
    713. height: 4em;
    714. position: relative;
    715. margin: auto;
    716. -webkit-transform: rotateZ(45deg);
    717. transform: rotateZ(45deg);
    718. }
    719. .sk-folding-cube .sk-cube {
    720. float: left;
    721. width: 50%;
    722. height: 50%;
    723. position: relative;
    724. -webkit-transform: scale(1.1);
    725. transform: scale(1.1);
    726. }
    727. .sk-folding-cube .sk-cube:before {
    728. content: "";
    729. position: absolute;
    730. top: 0;
    731. left: 0;
    732. width: 100%;
    733. height: 100%;
    734. background-color: #337ab7;
    735. -webkit-animation: sk-folding-cube-angle 2.4s infinite linear both;
    736. animation: sk-folding-cube-angle 2.4s infinite linear both;
    737. -webkit-transform-origin: 100% 100%;
    738. transform-origin: 100% 100%;
    739. }
    740. .sk-folding-cube .sk-cube-2 {
    741. -webkit-transform: scale(1.1) rotateZ(90deg);
    742. transform: scale(1.1) rotateZ(90deg);
    743. }
    744. .sk-folding-cube .sk-cube-3 {
    745. -webkit-transform: scale(1.1) rotateZ(180deg);
    746. transform: scale(1.1) rotateZ(180deg);
    747. }
    748. .sk-folding-cube .sk-cube-4 {
    749. -webkit-transform: scale(1.1) rotateZ(270deg);
    750. transform: scale(1.1) rotateZ(270deg);
    751. }
    752. .sk-folding-cube .sk-cube-2:before {
    753. -webkit-animation-delay: 0.3s;
    754. animation-delay: 0.3s;
    755. }
    756. .sk-folding-cube .sk-cube-3:before {
    757. -webkit-animation-delay: 0.6s;
    758. animation-delay: 0.6s;
    759. }
    760. .sk-folding-cube .sk-cube-4:before {
    761. -webkit-animation-delay: 0.9s;
    762. animation-delay: 0.9s;
    763. }
    764. @-webkit-keyframes sk-folding-cube-angle {
    765. 0%,
    766. 10% {
    767. -webkit-transform: perspective(140px) rotateX(-180deg);
    768. transform: perspective(140px) rotateX(-180deg);
    769. opacity: 0;
    770. }
    771. 25%,
    772. 75% {
    773. -webkit-transform: perspective(140px) rotateX(0deg);
    774. transform: perspective(140px) rotateX(0deg);
    775. opacity: 1;
    776. }
    777. 90%,
    778. 100% {
    779. -webkit-transform: perspective(140px) rotateY(180deg);
    780. transform: perspective(140px) rotateY(180deg);
    781. opacity: 0;
    782. }
    783. }
    784. @keyframes sk-folding-cube-angle {
    785. 0%,
    786. 10% {
    787. -webkit-transform: perspective(140px) rotateX(-180deg);
    788. transform: perspective(140px) rotateX(-180deg);
    789. opacity: 0;
    790. }
    791. 25%,
    792. 75% {
    793. -webkit-transform: perspective(140px) rotateX(0deg);
    794. transform: perspective(140px) rotateX(0deg);
    795. opacity: 1;
    796. }
    797. 90%,
    798. 100% {
    799. -webkit-transform: perspective(140px) rotateY(180deg);
    800. transform: perspective(140px) rotateY(180deg);
    801. opacity: 0;
    802. }
    803. }

  • 相关阅读:
    SaaSBase:AdsPower是什么?
    基于智能反射面的MIMO系统波束赋形算法代码
    【Javascript】函数隐藏参数ar
    带符号整数
    短链系统设计-存储设计
    Java实操必坑指南二、java泛型、反射、编译优化
    Spring Boot RestController接口如何输出到终端
    化工&python | CSTR连续搅拌反应器系统
    使用kaggle运行机器学习代码的几点注意事项(超重要!!!)
    [hello,world]这个如何将[ ] 去掉
  • 原文地址:https://blog.csdn.net/weixin_43340372/article/details/132880347