Advertisement
Peaser

Gumroad Loader

May 27th, 2015
834
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.10 KB | None | 0 0
  1. /* https://jsfiddle.net/4jg3g3hr/1/ */
  2.  
  3. /*
  4. USE THIS HTML:
  5.  
  6. <div id="wrapper">
  7.     <div id="loader"></div>
  8. </div>
  9. */
  10.  
  11.  
  12. @-webkit-keyframes loading {
  13.   0% {
  14.     background-position: 0; }
  15.   100% {
  16.     background-position: -150px; } }
  17.  
  18. @keyframes loading {
  19.   0% {
  20.     background-position: 0; }
  21.   100% {
  22.     background-position: -150px; } }
  23.  
  24. #wrapper {
  25.     position: absolute;
  26.     width: 100%;
  27.     left: 0px;
  28.     right: 0px;
  29.     height: 100%;
  30.     top: 0px;
  31.     bottom: 0px;
  32.     text-align: center;
  33.     margin: 0 auto;
  34. }
  35.  
  36. #loader {
  37. -webkit-animation: loading 3s infinite linear;
  38.   animation: loading 3s infinite linear;
  39.   background: -webkit-linear-gradient(left, #f09d1f 0%, #f09d1f 20%, #f09d1f 20%, #eb5d47 20%, #eb5d47 20%, #eb5d47 40%, #cb3246 40%, #cb3246 60%, #cb3246 60%, #962422 60%, #962422 80%, #208488 80%);
  40.   background: linear-gradient(to right, #f09d1f 0%, #f09d1f 20%, #f09d1f 20%, #eb5d47 20%, #eb5d47 20%, #eb5d47 40%, #cb3246 40%, #cb3246 60%, #cb3246 60%, #962422 60%, #962422 80%, #208488 80%);
  41.   height: 5px;
  42.   margin: 0 auto;
  43.   width: 150px;
  44.     margin-top: 25%;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement