PageLoading.vue 863 B

1234567891011121314151617181920212223242526272829303132
  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 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/mobile/loading.png'); animation: spin 800ms infinite linear; }
  18. .loading {
  19. position: fixed;
  20. top: 0;
  21. left: 0;
  22. right: 0;
  23. width: 100%;
  24. height: 100%;
  25. z-index: 1000;
  26. text-align: center;
  27. }
  28. .loading img {
  29. position: relative;
  30. top: 40%;
  31. }
  32. </style>