loading4.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <template>
  2. <view class="container loading5">
  3. <view class="shape shape1"></view>
  4. <view class="shape shape2"></view>
  5. <view class="shape shape3"></view>
  6. <view class="shape shape4"></view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. name: 'loading5',
  12. data() {
  13. return {};
  14. }
  15. }
  16. </script>
  17. <style scoped="true">
  18. .container {
  19. width: 30px;
  20. height: 30px;
  21. position: relative;
  22. }
  23. .container.loading5 .shape {
  24. width: 15px;
  25. height: 15px;
  26. }
  27. .container .shape {
  28. position: absolute;
  29. width: 10px;
  30. height: 10px;
  31. border-radius: 1px;
  32. }
  33. .container .shape.shape1 {
  34. left: 0;
  35. background-color: #1890FF;
  36. }
  37. .container .shape.shape2 {
  38. right: 0;
  39. background-color: #91CB74;
  40. }
  41. .container .shape.shape3 {
  42. bottom: 0;
  43. background-color: #FAC858;
  44. }
  45. .container .shape.shape4 {
  46. bottom: 0;
  47. right: 0;
  48. background-color: #EE6666;
  49. }
  50. .loading5 .shape1 {
  51. animation: animation5shape1 2s ease 0s infinite reverse;
  52. }
  53. @-webkit-keyframes animation5shape1 {
  54. 0% {
  55. -webkit-transform: translate(0, 0);
  56. transform: translate(0, 0);
  57. }
  58. 25% {
  59. -webkit-transform: translate(0, 15px);
  60. transform: translate(0, 15px);
  61. }
  62. 50% {
  63. -webkit-transform: translate(15px, 15px);
  64. transform: translate(15px, 15px);
  65. }
  66. 75% {
  67. -webkit-transform: translate(15px, 0);
  68. transform: translate(15px, 0);
  69. }
  70. }
  71. @keyframes animation5shape1 {
  72. 0% {
  73. -webkit-transform: translate(0, 0);
  74. transform: translate(0, 0);
  75. }
  76. 25% {
  77. -webkit-transform: translate(0, 15px);
  78. transform: translate(0, 15px);
  79. }
  80. 50% {
  81. -webkit-transform: translate(15px, 15px);
  82. transform: translate(15px, 15px);
  83. }
  84. 75% {
  85. -webkit-transform: translate(15px, 0);
  86. transform: translate(15px, 0);
  87. }
  88. }
  89. .loading5 .shape2 {
  90. animation: animation5shape2 2s ease 0s infinite reverse;
  91. }
  92. @-webkit-keyframes animation5shape2 {
  93. 0% {
  94. -webkit-transform: translate(0, 0);
  95. transform: translate(0, 0);
  96. }
  97. 25% {
  98. -webkit-transform: translate(-15px, 0);
  99. transform: translate(-15px, 0);
  100. }
  101. 50% {
  102. -webkit-transform: translate(-15px, 15px);
  103. transform: translate(-15px, 15px);
  104. }
  105. 75% {
  106. -webkit-transform: translate(0, 15px);
  107. transform: translate(0, 15px);
  108. }
  109. }
  110. @keyframes animation5shape2 {
  111. 0% {
  112. -webkit-transform: translate(0, 0);
  113. transform: translate(0, 0);
  114. }
  115. 25% {
  116. -webkit-transform: translate(-15px, 0);
  117. transform: translate(-15px, 0);
  118. }
  119. 50% {
  120. -webkit-transform: translate(-15px, 15px);
  121. transform: translate(-15px, 15px);
  122. }
  123. 75% {
  124. -webkit-transform: translate(0, 15px);
  125. transform: translate(0, 15px);
  126. }
  127. }
  128. .loading5 .shape3 {
  129. animation: animation5shape3 2s ease 0s infinite reverse;
  130. }
  131. @-webkit-keyframes animation5shape3 {
  132. 0% {
  133. -webkit-transform: translate(0, 0);
  134. transform: translate(0, 0);
  135. }
  136. 25% {
  137. -webkit-transform: translate(15px, 0);
  138. transform: translate(15px, 0);
  139. }
  140. 50% {
  141. -webkit-transform: translate(15px, -15px);
  142. transform: translate(15px, -15px);
  143. }
  144. 75% {
  145. -webkit-transform: translate(0, -15px);
  146. transform: translate(0, -15px);
  147. }
  148. }
  149. @keyframes animation5shape3 {
  150. 0% {
  151. -webkit-transform: translate(0, 0);
  152. transform: translate(0, 0);
  153. }
  154. 25% {
  155. -webkit-transform: translate(15px, 0);
  156. transform: translate(15px, 0);
  157. }
  158. 50% {
  159. -webkit-transform: translate(15px, -15px);
  160. transform: translate(15px, -15px);
  161. }
  162. 75% {
  163. -webkit-transform: translate(0, -15px);
  164. transform: translate(0, -15px);
  165. }
  166. }
  167. .loading5 .shape4 {
  168. animation: animation5shape4 2s ease 0s infinite reverse;
  169. }
  170. @-webkit-keyframes animation5shape4 {
  171. 0% {
  172. -webkit-transform: translate(0, 0);
  173. transform: translate(0, 0);
  174. }
  175. 25% {
  176. -webkit-transform: translate(0, -15px);
  177. transform: translate(0, -15px);
  178. }
  179. 50% {
  180. -webkit-transform: translate(-15px, -15px);
  181. transform: translate(-15px, -15px);
  182. }
  183. 75% {
  184. -webkit-transform: translate(-15px, 0);
  185. transform: translate(-15px, 0);
  186. }
  187. }
  188. @keyframes animation5shape4 {
  189. 0% {
  190. -webkit-transform: translate(0, 0);
  191. transform: translate(0, 0);
  192. }
  193. 25% {
  194. -webkit-transform: translate(0, -15px);
  195. transform: translate(0, -15px);
  196. }
  197. 50% {
  198. -webkit-transform: translate(-15px, -15px);
  199. transform: translate(-15px, -15px);
  200. }
  201. 75% {
  202. -webkit-transform: translate(-15px, 0);
  203. transform: translate(-15px, 0);
  204. }
  205. }
  206. </style>