loadingPoints.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view class="">
  3. <view class="spinner">
  4. <view class="bounce1"></view>
  5. <view class="bounce2"></view>
  6. <view class="bounce3"></view>
  7. <slot> </slot>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. </script>
  13. <style>
  14. .spinner {
  15. right: 200px;
  16. width: 100%;
  17. text-align: end;
  18. }
  19. .spinner > view {
  20. width: 12px;
  21. height: 12px;
  22. background-color: #1E90FF;
  23. border-radius: 100%;
  24. display: inline-block;
  25. -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
  26. animation: bouncedelay 1.4s infinite ease-in-out;
  27. /* Prevent first frame from flickering when animation starts */
  28. -webkit-animation-fill-mode: both;
  29. animation-fill-mode: both;
  30. }
  31. .spinner .bounce1 {
  32. -webkit-animation-delay: -0.32s;
  33. animation-delay: -0.32s;
  34. }
  35. .spinner .bounce2 {
  36. -webkit-animation-delay: -0.16s;
  37. animation-delay: -0.16s;
  38. }
  39. @-webkit-keyframes bouncedelay {
  40. 0%, 80%, 100% { -webkit-transform: scale(0.0) }
  41. 40% { -webkit-transform: scale(1.0) }
  42. }
  43. @keyframes bouncedelay {
  44. 0%, 80%, 100% {
  45. transform: scale(0.0);
  46. -webkit-transform: scale(0.0);
  47. } 40% {
  48. transform: scale(1.0);
  49. -webkit-transform: scale(1.0);
  50. }
  51. }
  52. </style>