loading.scss 649 B

12345678910111213141516171819202122232425262728293031323334353637
  1. $bg-color: #eee !default
  2. $spinner-color: #999 !default
  3. $spinner-bg-color: #ddd !default
  4. .loading-container {
  5. position: absolute;
  6. top: 0;
  7. width: 100%;
  8. height: 100%;
  9. background-color: $bg-color;
  10. z-index: 1000;
  11. }
  12. .loading-circle {
  13. box-sizing: border-box;
  14. width: 80px;
  15. height: 80px;
  16. position: absolute;
  17. top: calc(50% - 40px);
  18. left: calc(50% - 40px);
  19. border-radius: 100%;
  20. border: 10px solid $spinner-bg-color;
  21. border-top-color: $spinner-color;
  22. animation: spin 1s infinite linear;
  23. }
  24. @keyframes spin {
  25. 100% {
  26. transform: rotate(360deg);
  27. }
  28. }
  29. .loaded {
  30. top: -100%;
  31. transition: top 1s;
  32. transition-delay: 2s;
  33. }