選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

loading2.vue 3.5 KiB

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