spinner_dot.styl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @import 'nib'
  2. // From https://github.com/tobiasahlin/SpinKit
  3. .sk-spinner-dot {
  4. margin: 100px auto;
  5. width: 40px;
  6. height: 40px;
  7. position: relative;
  8. text-align: center;
  9. -webkit-animation: sk-rotate 2.0s infinite linear;
  10. animation: sk-rotate 2.0s infinite linear;
  11. }
  12. .sk-dot1, .sk-dot2 {
  13. width: 40%;
  14. height: 40%;
  15. display: inline-block;
  16. position: absolute;
  17. top: 0;
  18. background-color: #333;
  19. border-radius: 100%;
  20. -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
  21. animation: sk-bounce 2.0s infinite ease-in-out;
  22. }
  23. .sk-dot2 {
  24. top: auto;
  25. bottom: 0;
  26. -webkit-animation-delay: -1.0s;
  27. animation-delay: -1.0s;
  28. }
  29. @-webkit-keyframes sk-rotate { 100% { -webkit-transform: rotate(360deg) }}
  30. @keyframes sk-rotate { 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg) }}
  31. @-webkit-keyframes sk-bounce {
  32. 0%, 100% { -webkit-transform: scale(0.0) }
  33. 50% { -webkit-transform: scale(1.0) }
  34. }
  35. @keyframes sk-bounce {
  36. 0%, 100% {
  37. transform: scale(0.0);
  38. -webkit-transform: scale(0.0);
  39. } 50% {
  40. transform: scale(1.0);
  41. -webkit-transform: scale(1.0);
  42. }
  43. }