loading21.css 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. .sk-cube-grid {
  2. width: 40px;
  3. height: 40px;
  4. display: inline-block;
  5. }
  6. .sk-cube-grid .sk-cube {
  7. width: 33%;
  8. height: 33%;
  9. background-color: #42b983; //可修改颜色
  10. float: left;
  11. -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
  12. animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
  13. }
  14. .sk-cube-grid .sk-cube1 {
  15. -webkit-animation-delay: 0.2s;
  16. animation-delay: 0.2s; }
  17. .sk-cube-grid .sk-cube2 {
  18. -webkit-animation-delay: 0.3s;
  19. animation-delay: 0.3s; }
  20. .sk-cube-grid .sk-cube3 {
  21. -webkit-animation-delay: 0.4s;
  22. animation-delay: 0.4s; }
  23. .sk-cube-grid .sk-cube4 {
  24. -webkit-animation-delay: 0.1s;
  25. animation-delay: 0.1s; }
  26. .sk-cube-grid .sk-cube5 {
  27. -webkit-animation-delay: 0.2s;
  28. animation-delay: 0.2s; }
  29. .sk-cube-grid .sk-cube6 {
  30. -webkit-animation-delay: 0.3s;
  31. animation-delay: 0.3s; }
  32. .sk-cube-grid .sk-cube7 {
  33. -webkit-animation-delay: 0s;
  34. animation-delay: 0s; }
  35. .sk-cube-grid .sk-cube8 {
  36. -webkit-animation-delay: 0.1s;
  37. animation-delay: 0.1s; }
  38. .sk-cube-grid .sk-cube9 {
  39. -webkit-animation-delay: 0.2s;
  40. animation-delay: 0.2s; }
  41. @-webkit-keyframes sk-cubeGridScaleDelay {
  42. 0%, 70%, 100% {
  43. -webkit-transform: scale3D(1, 1, 1);
  44. transform: scale3D(1, 1, 1);
  45. } 35% {
  46. -webkit-transform: scale3D(0, 0, 1);
  47. transform: scale3D(0, 0, 1);
  48. }
  49. }
  50. @keyframes sk-cubeGridScaleDelay {
  51. 0%, 70%, 100% {
  52. -webkit-transform: scale3D(1, 1, 1);
  53. transform: scale3D(1, 1, 1);
  54. } 35% {
  55. -webkit-transform: scale3D(0, 0, 1);
  56. transform: scale3D(0, 0, 1);
  57. }
  58. }