loading1.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <view class="container loading1">
  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: 'loading1',
  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.loading1 {
  24. -webkit-transform: rotate(45deg);
  25. transform: rotate(45deg);
  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. .loading1 .shape1 {
  51. -webkit-animation: animation1shape1 0.5s ease 0s infinite alternate;
  52. animation: animation1shape1 0.5s ease 0s infinite alternate;
  53. }
  54. @-webkit-keyframes animation1shape1 {
  55. from {
  56. -webkit-transform: translate(0, 0);
  57. transform: translate(0, 0);
  58. }
  59. to {
  60. -webkit-transform: translate(16px, 16px);
  61. transform: translate(16px, 16px);
  62. }
  63. }
  64. @keyframes animation1shape1 {
  65. from {
  66. -webkit-transform: translate(0, 0);
  67. transform: translate(0, 0);
  68. }
  69. to {
  70. -webkit-transform: translate(16px, 16px);
  71. transform: translate(16px, 16px);
  72. }
  73. }
  74. .loading1 .shape2 {
  75. -webkit-animation: animation1shape2 0.5s ease 0s infinite alternate;
  76. animation: animation1shape2 0.5s ease 0s infinite alternate;
  77. }
  78. @-webkit-keyframes animation1shape2 {
  79. from {
  80. -webkit-transform: translate(0, 0);
  81. transform: translate(0, 0);
  82. }
  83. to {
  84. -webkit-transform: translate(-16px, 16px);
  85. transform: translate(-16px, 16px);
  86. }
  87. }
  88. @keyframes animation1shape2 {
  89. from {
  90. -webkit-transform: translate(0, 0);
  91. transform: translate(0, 0);
  92. }
  93. to {
  94. -webkit-transform: translate(-16px, 16px);
  95. transform: translate(-16px, 16px);
  96. }
  97. }
  98. .loading1 .shape3 {
  99. -webkit-animation: animation1shape3 0.5s ease 0s infinite alternate;
  100. animation: animation1shape3 0.5s ease 0s infinite alternate;
  101. }
  102. @-webkit-keyframes animation1shape3 {
  103. from {
  104. -webkit-transform: translate(0, 0);
  105. transform: translate(0, 0);
  106. }
  107. to {
  108. -webkit-transform: translate(16px, -16px);
  109. transform: translate(16px, -16px);
  110. }
  111. }
  112. @keyframes animation1shape3 {
  113. from {
  114. -webkit-transform: translate(0, 0);
  115. transform: translate(0, 0);
  116. }
  117. to {
  118. -webkit-transform: translate(16px, -16px);
  119. transform: translate(16px, -16px);
  120. }
  121. }
  122. .loading1 .shape4 {
  123. -webkit-animation: animation1shape4 0.5s ease 0s infinite alternate;
  124. animation: animation1shape4 0.5s ease 0s infinite alternate;
  125. }
  126. @-webkit-keyframes animation1shape4 {
  127. from {
  128. -webkit-transform: translate(0, 0);
  129. transform: translate(0, 0);
  130. }
  131. to {
  132. -webkit-transform: translate(-16px, -16px);
  133. transform: translate(-16px, -16px);
  134. }
  135. }
  136. @keyframes animation1shape4 {
  137. from {
  138. -webkit-transform: translate(0, 0);
  139. transform: translate(0, 0);
  140. }
  141. to {
  142. -webkit-transform: translate(-16px, -16px);
  143. transform: translate(-16px, -16px);
  144. }
  145. }
  146. </style>