You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.5 KiB

  1. // Chase spinner from https://tobiasahlin.com/spinkit/. MIT license
  2. .sk-center-wrapper
  3. width: 100%
  4. display: flex
  5. justify-content: space-around
  6. .sk-chase
  7. position: relative
  8. animation: sk-chase 2.5s infinite linear both
  9. &.green > .sk-chase-dot:before
  10. background-color: #00C853
  11. > .sk-chase-dot
  12. width: 100%
  13. height: 100%
  14. position: absolute
  15. left: 0
  16. top: 0
  17. animation: sk-chase-dot 2.0s infinite ease-in-out both
  18. &:before
  19. content: ''
  20. display: block
  21. width: 25%
  22. height: 25%
  23. border-radius: 100%
  24. animation: sk-chase-dot-before 2.0s infinite ease-in-out both
  25. background-color: #FFF
  26. &:nth-child(1)
  27. animation-delay: -1.1s
  28. &:nth-child(2)
  29. animation-delay: -1.0s
  30. &:nth-child(3)
  31. animation-delay: -0.9s
  32. &:nth-child(4)
  33. animation-delay: -0.8s
  34. &:nth-child(5)
  35. animation-delay: -0.7s
  36. &:nth-child(6)
  37. animation-delay: -0.6s
  38. &:nth-child(1):before
  39. animation-delay: -1.1s
  40. &:nth-child(2):before
  41. animation-delay: -1.0s
  42. &:nth-child(3):before
  43. animation-delay: -0.9s
  44. &:nth-child(4):before
  45. animation-delay: -0.8s
  46. &:nth-child(5):before
  47. animation-delay: -0.7s
  48. &:nth-child(6):before
  49. animation-delay: -0.6s
  50. @keyframes sk-chase
  51. 100%
  52. transform: rotate(360deg)
  53. @keyframes sk-chase-dot
  54. 80%, 100%
  55. transform: rotate(360deg)
  56. @keyframes sk-chase-dot-before
  57. 50%
  58. transform: scale(0.4)
  59. 100%, 0%
  60. transform: scale(1.0)