spinner_cube_grid.styl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @import 'nib'
  2. // From https://github.com/tobiasahlin/SpinKit
  3. .sk-spinner-cube-grid {
  4. width: 40px;
  5. height: 40px;
  6. margin: 100px auto;
  7. }
  8. .sk-spinner-cube-grid .sk-cube-grid {
  9. width: 33%;
  10. height: 33%;
  11. background-color: #333;
  12. float: left;
  13. -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
  14. animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
  15. }
  16. .sk-spinner-cube-grid .sk-cube-grid1 {
  17. -webkit-animation-delay: 0.2s;
  18. animation-delay: 0.2s; }
  19. .sk-spinner-cube-grid .sk-cube-grid2 {
  20. -webkit-animation-delay: 0.3s;
  21. animation-delay: 0.3s; }
  22. .sk-spinner-cube-grid .sk-cube-grid3 {
  23. -webkit-animation-delay: 0.4s;
  24. animation-delay: 0.4s; }
  25. .sk-spinner-cube-grid .sk-cube-grid4 {
  26. -webkit-animation-delay: 0.1s;
  27. animation-delay: 0.1s; }
  28. .sk-spinner-cube-grid .sk-cube-grid5 {
  29. -webkit-animation-delay: 0.2s;
  30. animation-delay: 0.2s; }
  31. .sk-spinner-cube-grid .sk-cube-grid6 {
  32. -webkit-animation-delay: 0.3s;
  33. animation-delay: 0.3s; }
  34. .sk-spinner-cube-grid .sk-cube-grid7 {
  35. -webkit-animation-delay: 0s;
  36. animation-delay: 0s; }
  37. .sk-spinner-cube-grid .sk-cube-grid8 {
  38. -webkit-animation-delay: 0.1s;
  39. animation-delay: 0.1s; }
  40. .sk-spinner-cube-grid .sk-cube-grid9 {
  41. -webkit-animation-delay: 0.2s;
  42. animation-delay: 0.2s; }
  43. @-webkit-keyframes sk-cubeGridScaleDelay {
  44. 0%, 70%, 100% {
  45. -webkit-transform: scale3D(1, 1, 1);
  46. transform: scale3D(1, 1, 1);
  47. } 35% {
  48. -webkit-transform: scale3D(0, 0, 1);
  49. transform: scale3D(0, 0, 1);
  50. }
  51. }
  52. @keyframes sk-cubeGridScaleDelay {
  53. 0%, 70%, 100% {
  54. -webkit-transform: scale3D(1, 1, 1);
  55. transform: scale3D(1, 1, 1);
  56. } 35% {
  57. -webkit-transform: scale3D(0, 0, 1);
  58. transform: scale3D(0, 0, 1);
  59. }
  60. }