loader.less 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // Ajax loader
  3. // --------------------------------------------------
  4. .loader {
  5. margin: @line-height-computed auto;
  6. width: auto;
  7. text-align: center;
  8. p {
  9. margin-top: @line-height-computed / 2;
  10. color: @loader-text-color;
  11. font-size: @font-size-small;
  12. }
  13. &>div {
  14. width: 18px;
  15. height: 18px;
  16. background-color: @loader-color;
  17. border-radius: 100%;
  18. display: inline-block;
  19. -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
  20. animation: bouncedelay 1.4s infinite ease-in-out;
  21. /* Prevent first frame from flickering when animation starts */
  22. -webkit-animation-fill-mode: both;
  23. animation-fill-mode: both;
  24. }
  25. .bounce1 {
  26. -webkit-animation-delay: -0.32s;
  27. animation-delay: -0.32s;
  28. }
  29. .bounce2 {
  30. -webkit-animation-delay: -0.16s;
  31. animation-delay: -0.16s;
  32. }
  33. }
  34. @-webkit-keyframes bouncedelay {
  35. 0%, 80%, 100% { -webkit-transform: scale(0.0) }
  36. 40% { -webkit-transform: scale(1.0) }
  37. }
  38. @keyframes bouncedelay {
  39. 0%, 80%, 100% {
  40. transform: scale(0.0);
  41. -webkit-transform: scale(0.0);
  42. } 40% {
  43. transform: scale(1.0);
  44. -webkit-transform: scale(1.0);
  45. }
  46. }