loading20.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. .sk-circle {
  2. display: inline-block;
  3. width: 40px;
  4. height: 40px;
  5. position: relative;
  6. }
  7. .sk-circle .sk-child {
  8. width: 100%;
  9. height: 100%;
  10. position: absolute;
  11. left: 0;
  12. top: 0;
  13. }
  14. .sk-circle .sk-child:before {
  15. content: '';
  16. display: block;
  17. margin: 0 auto;
  18. width: 15%;
  19. height: 15%;
  20. background-color: #42b983; //可修改颜色
  21. border-radius: 100%;
  22. -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
  23. animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
  24. }
  25. .sk-circle .sk-circle2 {
  26. -webkit-transform: rotate(30deg);
  27. -ms-transform: rotate(30deg);
  28. transform: rotate(30deg);
  29. }
  30. .sk-circle .sk-circle3 {
  31. -webkit-transform: rotate(60deg);
  32. -ms-transform: rotate(60deg);
  33. transform: rotate(60deg);
  34. }
  35. .sk-circle .sk-circle4 {
  36. -webkit-transform: rotate(90deg);
  37. -ms-transform: rotate(90deg);
  38. transform: rotate(90deg);
  39. }
  40. .sk-circle .sk-circle5 {
  41. -webkit-transform: rotate(120deg);
  42. -ms-transform: rotate(120deg);
  43. transform: rotate(120deg);
  44. }
  45. .sk-circle .sk-circle6 {
  46. -webkit-transform: rotate(150deg);
  47. -ms-transform: rotate(150deg);
  48. transform: rotate(150deg);
  49. }
  50. .sk-circle .sk-circle7 {
  51. -webkit-transform: rotate(180deg);
  52. -ms-transform: rotate(180deg);
  53. transform: rotate(180deg);
  54. }
  55. .sk-circle .sk-circle8 {
  56. -webkit-transform: rotate(210deg);
  57. -ms-transform: rotate(210deg);
  58. transform: rotate(210deg);
  59. }
  60. .sk-circle .sk-circle9 {
  61. -webkit-transform: rotate(240deg);
  62. -ms-transform: rotate(240deg);
  63. transform: rotate(240deg);
  64. }
  65. .sk-circle .sk-circle10 {
  66. -webkit-transform: rotate(270deg);
  67. -ms-transform: rotate(270deg);
  68. transform: rotate(270deg);
  69. }
  70. .sk-circle .sk-circle11 {
  71. -webkit-transform: rotate(300deg);
  72. -ms-transform: rotate(300deg);
  73. transform: rotate(300deg);
  74. }
  75. .sk-circle .sk-circle12 {
  76. -webkit-transform: rotate(330deg);
  77. -ms-transform: rotate(330deg);
  78. transform: rotate(330deg);
  79. }
  80. .sk-circle .sk-circle2:before {
  81. -webkit-animation-delay: -1.1s;
  82. animation-delay: -1.1s;
  83. }
  84. .sk-circle .sk-circle3:before {
  85. -webkit-animation-delay: -1s;
  86. animation-delay: -1s;
  87. }
  88. .sk-circle .sk-circle4:before {
  89. -webkit-animation-delay: -0.9s;
  90. animation-delay: -0.9s;
  91. }
  92. .sk-circle .sk-circle5:before {
  93. -webkit-animation-delay: -0.8s;
  94. animation-delay: -0.8s;
  95. }
  96. .sk-circle .sk-circle6:before {
  97. -webkit-animation-delay: -0.7s;
  98. animation-delay: -0.7s;
  99. }
  100. .sk-circle .sk-circle7:before {
  101. -webkit-animation-delay: -0.6s;
  102. animation-delay: -0.6s;
  103. }
  104. .sk-circle .sk-circle8:before {
  105. -webkit-animation-delay: -0.5s;
  106. animation-delay: -0.5s;
  107. }
  108. .sk-circle .sk-circle9:before {
  109. -webkit-animation-delay: -0.4s;
  110. animation-delay: -0.4s;
  111. }
  112. .sk-circle .sk-circle10:before {
  113. -webkit-animation-delay: -0.3s;
  114. animation-delay: -0.3s;
  115. }
  116. .sk-circle .sk-circle11:before {
  117. -webkit-animation-delay: -0.2s;
  118. animation-delay: -0.2s;
  119. }
  120. .sk-circle .sk-circle12:before {
  121. -webkit-animation-delay: -0.1s;
  122. animation-delay: -0.1s;
  123. }
  124. @-webkit-keyframes sk-circleBounceDelay {
  125. 0%,
  126. 80%,
  127. 100% {
  128. -webkit-transform: scale(0);
  129. transform: scale(0);
  130. }
  131. 40% {
  132. -webkit-transform: scale(1);
  133. transform: scale(1);
  134. }
  135. }
  136. @keyframes sk-circleBounceDelay {
  137. 0%,
  138. 80%,
  139. 100% {
  140. -webkit-transform: scale(0);
  141. transform: scale(0);
  142. }
  143. 40% {
  144. -webkit-transform: scale(1);
  145. transform: scale(1);
  146. }
  147. }