Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

loading1.vue 3.4 KiB

vor 3 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. }
  17. </script>
  18. <style scoped="true">
  19. .container {
  20. width: 30px;
  21. height: 30px;
  22. position: relative;
  23. }
  24. .container.loading1 {
  25. -webkit-transform: rotate(45deg);
  26. transform: rotate(45deg);
  27. }
  28. .container .shape {
  29. position: absolute;
  30. width: 10px;
  31. height: 10px;
  32. border-radius: 1px;
  33. }
  34. .container .shape.shape1 {
  35. left: 0;
  36. background-color: #1890FF;
  37. }
  38. .container .shape.shape2 {
  39. right: 0;
  40. background-color: #91CB74;
  41. }
  42. .container .shape.shape3 {
  43. bottom: 0;
  44. background-color: #FAC858;
  45. }
  46. .container .shape.shape4 {
  47. bottom: 0;
  48. right: 0;
  49. background-color: #EE6666;
  50. }
  51. .loading1 .shape1 {
  52. -webkit-animation: animation1shape1 0.5s ease 0s infinite alternate;
  53. animation: animation1shape1 0.5s ease 0s infinite alternate;
  54. }
  55. @-webkit-keyframes animation1shape1 {
  56. from {
  57. -webkit-transform: translate(0, 0);
  58. transform: translate(0, 0);
  59. }
  60. to {
  61. -webkit-transform: translate(16px, 16px);
  62. transform: translate(16px, 16px);
  63. }
  64. }
  65. @keyframes animation1shape1 {
  66. from {
  67. -webkit-transform: translate(0, 0);
  68. transform: translate(0, 0);
  69. }
  70. to {
  71. -webkit-transform: translate(16px, 16px);
  72. transform: translate(16px, 16px);
  73. }
  74. }
  75. .loading1 .shape2 {
  76. -webkit-animation: animation1shape2 0.5s ease 0s infinite alternate;
  77. animation: animation1shape2 0.5s ease 0s infinite alternate;
  78. }
  79. @-webkit-keyframes animation1shape2 {
  80. from {
  81. -webkit-transform: translate(0, 0);
  82. transform: translate(0, 0);
  83. }
  84. to {
  85. -webkit-transform: translate(-16px, 16px);
  86. transform: translate(-16px, 16px);
  87. }
  88. }
  89. @keyframes animation1shape2 {
  90. from {
  91. -webkit-transform: translate(0, 0);
  92. transform: translate(0, 0);
  93. }
  94. to {
  95. -webkit-transform: translate(-16px, 16px);
  96. transform: translate(-16px, 16px);
  97. }
  98. }
  99. .loading1 .shape3 {
  100. -webkit-animation: animation1shape3 0.5s ease 0s infinite alternate;
  101. animation: animation1shape3 0.5s ease 0s infinite alternate;
  102. }
  103. @-webkit-keyframes animation1shape3 {
  104. from {
  105. -webkit-transform: translate(0, 0);
  106. transform: translate(0, 0);
  107. }
  108. to {
  109. -webkit-transform: translate(16px, -16px);
  110. transform: translate(16px, -16px);
  111. }
  112. }
  113. @keyframes animation1shape3 {
  114. from {
  115. -webkit-transform: translate(0, 0);
  116. transform: translate(0, 0);
  117. }
  118. to {
  119. -webkit-transform: translate(16px, -16px);
  120. transform: translate(16px, -16px);
  121. }
  122. }
  123. .loading1 .shape4 {
  124. -webkit-animation: animation1shape4 0.5s ease 0s infinite alternate;
  125. animation: animation1shape4 0.5s ease 0s infinite alternate;
  126. }
  127. @-webkit-keyframes animation1shape4 {
  128. from {
  129. -webkit-transform: translate(0, 0);
  130. transform: translate(0, 0);
  131. }
  132. to {
  133. -webkit-transform: translate(-16px, -16px);
  134. transform: translate(-16px, -16px);
  135. }
  136. }
  137. @keyframes animation1shape4 {
  138. from {
  139. -webkit-transform: translate(0, 0);
  140. transform: translate(0, 0);
  141. }
  142. to {
  143. -webkit-transform: translate(-16px, -16px);
  144. transform: translate(-16px, -16px);
  145. }
  146. }
  147. </style>