Loading.vue 926 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <div class="loading">
  3. <!--<img src="/images/all/loading.gif" alt="">-->
  4. <div class="wrap">
  5. <div class="outer"></div>
  6. </div>
  7. </div>
  8. </template>
  9. <style lang="scss" scoped>
  10. @keyframes spin {
  11. 0% { transform: rotate(360deg); }
  12. 100% { transform: rotate(0deg); }
  13. }
  14. .wrap { width: 64px; height: 64px; position: absolute;left: 50%;top:50%;margin-left:-32px;margin-top: -32px; }
  15. .outer {
  16. background-repeat: no-repeat;
  17. background-size:100%; position: absolute; width: 100%; height: 100%; background-image: url('/images/all/loading.png'); animation: spin 800ms infinite linear; }
  18. .loading {
  19. position: fixed;
  20. top: 0;
  21. left: 0;
  22. right: 0;
  23. margin: 0 auto;
  24. z-index: 1000;
  25. width: 100%;
  26. height: 100%;
  27. text-align: center;
  28. background: transparent;
  29. >img {
  30. position: relative;
  31. top: 40%;
  32. width: 64px;
  33. height: 64px;
  34. }
  35. }
  36. </style>