Spinner.scss 856 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @import "open-color/open-color.scss";
  2. $duration: 1.6s;
  3. .excalidraw {
  4. .Spinner {
  5. display: flex;
  6. align-items: center;
  7. justify-content: center;
  8. height: 100%;
  9. margin-left: auto;
  10. margin-right: auto;
  11. --spinner-color: var(--icon-fill-color);
  12. svg {
  13. animation: rotate $duration linear infinite;
  14. transform-origin: center center;
  15. }
  16. circle {
  17. stroke: var(--spinner-color);
  18. animation: dash $duration linear 0s infinite;
  19. stroke-linecap: round;
  20. }
  21. }
  22. @keyframes rotate {
  23. 100% {
  24. transform: rotate(360deg);
  25. }
  26. }
  27. @keyframes dash {
  28. 0% {
  29. stroke-dasharray: 1, 300;
  30. stroke-dashoffset: 0;
  31. }
  32. 50% {
  33. stroke-dasharray: 150, 300;
  34. stroke-dashoffset: -200;
  35. }
  36. 100% {
  37. stroke-dasharray: 1, 300;
  38. stroke-dashoffset: -280;
  39. }
  40. }
  41. }