Advertisement
Guest User

CSS loading bar

a guest
Jan 18th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. .progress-container {
  2. left: 50%;
  3. position: absolute;
  4. transform: translate(-50%, -50%);
  5. }
  6.  
  7. .progress {
  8. background-color: rgba(138,138,138,0.67);
  9. height: 1.25em;
  10. position: relative;
  11. width: 117em;
  12. }
  13. .progress-bar {
  14. background-size: 117em 1.25em;
  15. height: 100%;
  16. position: relative;
  17. background-image: linear-gradient(to right, rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252));
  18. background-image: -o-linear-gradient(to right, rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252));
  19. background-image: -ms-linear-gradient(to right, rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252));
  20. background-image: -webkit-linear-gradient(to right, rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252));
  21. background-image: -moz-linear-gradient(to right, rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252), rgb(252,252,252));
  22. animation: cssload-width 12s cubic-bezier(0.45, 0, 1, 1) infinite;
  23. -o-animation: cssload-width 12s cubic-bezier(0.45, 0, 1, 1) infinite;
  24. -ms-animation: cssload-width 12s cubic-bezier(0.45, 0, 1, 1) infinite;
  25. -webkit-animation: cssload-width 12s cubic-bezier(0.45, 0, 1, 1) infinite;
  26. -moz-animation: cssload-width 12s cubic-bezier(0.45, 0, 1, 1) infinite;
  27. }
  28. .progress-shadow {
  29. height: 20em;
  30. position: absolute;
  31. top: 100%;
  32. width: 100%;
  33. transform: skew(45deg);
  34. -o-transform: skew(45deg);
  35. -ms-transform: skew(45deg);
  36. -webkit-transform: skew(45deg);
  37. -moz-transform: skew(45deg);
  38. transform-origin: 0 0;
  39. -o-transform-origin: 0 0;
  40. -ms-transform-origin: 0 0;
  41. -webkit-transform-origin: 0 0;
  42. -moz-transform-origin: 0 0;
  43. background-image: linear-gradient(to bottom, rgba(234,236,238,0), transparent);
  44. background-image: -o-linear-gradient(to bottom, rgba(234,236,238,0), transparent);
  45. background-image: -ms-linear-gradient(to bottom, rgba(234,236,238,0), transparent);
  46. background-image: -webkit-linear-gradient(to bottom, rgba(234,236,238,0), transparent);
  47. background-image: -moz-linear-gradient(to bottom, rgba(234,236,238,0), transparent);
  48. }
  49.  
  50.  
  51.  
  52. @keyframes cssload-width {
  53. 0%, 100% {
  54. transition-timing-function: cubic-bezier(1, 0, 0.65, 0.85);
  55. }
  56. 0% {
  57. width: 0;
  58. }
  59. 100% {
  60. width: 100%;
  61. }
  62. }
  63.  
  64. @-o-keyframes cssload-width {
  65. 0%, 100% {
  66. -o-transition-timing-function: cubic-bezier(1, 0, 0.65, 0.85);
  67. }
  68. 0% {
  69. width: 0;
  70. }
  71. 100% {
  72. width: 100%;
  73. }
  74. }
  75.  
  76. @-ms-keyframes cssload-width {
  77. 0%, 100% {
  78. -ms-transition-timing-function: cubic-bezier(1, 0, 0.65, 0.85);
  79. }
  80. 0% {
  81. width: 0;
  82. }
  83. 100% {
  84. width: 100%;
  85. }
  86. }
  87.  
  88. @-webkit-keyframes cssload-width {
  89. 0%, 100% {
  90. -webkit-transition-timing-function: cubic-bezier(1, 0, 0.65, 0.85);
  91. }
  92. 0% {
  93. width: 0;
  94. }
  95. 100% {
  96. width: 100%;
  97. }
  98. }
  99.  
  100. @-moz-keyframes cssload-width {
  101. 0%, 100% {
  102. -moz-transition-timing-function: cubic-bezier(1, 0, 0.65, 0.85);
  103. }
  104. 0% {
  105. width: 0;
  106. }
  107. 100% {
  108. width: 100%;
  109. }
  110. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement