spinner.css 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* http://tobiasahlin.com/spinkit/ */
  2. .spinner {
  3. margin: 20px auto;
  4. width: 50px;
  5. height: 40px;
  6. text-align: center;
  7. font-size: 10px;
  8. }
  9. .spinner > div {
  10. background-color: #333;
  11. height: 100%;
  12. width: 6px;
  13. display: inline-block;
  14. -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  15. animation: sk-stretchdelay 1.2s infinite ease-in-out;
  16. }
  17. .spinner .rect2 {
  18. -webkit-animation-delay: -1.1s;
  19. animation-delay: -1.1s;
  20. }
  21. .spinner .rect3 {
  22. -webkit-animation-delay: -1.0s;
  23. animation-delay: -1.0s;
  24. }
  25. .spinner .rect4 {
  26. -webkit-animation-delay: -0.9s;
  27. animation-delay: -0.9s;
  28. }
  29. .spinner .rect5 {
  30. -webkit-animation-delay: -0.8s;
  31. animation-delay: -0.8s;
  32. }
  33. @-webkit-keyframes sk-stretchdelay {
  34. 0%, 40%, 100% {
  35. -webkit-transform: scaleY(0.4)
  36. }
  37. 20% {
  38. -webkit-transform: scaleY(1.0)
  39. }
  40. }
  41. @keyframes sk-stretchdelay {
  42. 0%, 40%, 100% {
  43. transform: scaleY(0.4);
  44. -webkit-transform: scaleY(0.4);
  45. }
  46. 20% {
  47. transform: scaleY(1.0);
  48. -webkit-transform: scaleY(1.0);
  49. }
  50. }