Advertisement
xlrnxnlx

Facebook "loading" - HTML/CSS only

May 16th, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.41 KB | None | 0 0
  1. :: live > http://jsfiddle.net/rnxn/t67bg/ ::
  2.  
  3. .load {
  4.     visibility: hidden;
  5.     width: auto; height: auto;
  6.     display: inline-block;
  7.     padding: 6px;
  8.     position: absolute; top: 50%; left: 50%;
  9.     margin-top: -20px; margin-left: -35px;
  10. }
  11. .spin-it {
  12.     display: block;
  13.     height: 20px; width: 20px;
  14.     background: rgba(17, 176, 125, 1);
  15.     border: 0 none;
  16.     float: left;
  17.     margin: 0 4px;
  18.     animation: spin 1s infinite;
  19.     -moz-animation: spin 1s infinite;
  20.     -webkit-animation: spin 1s infinite;
  21. }
  22. @keyframes spin{
  23.     0%  { opacity: 0; }
  24.     50% { opacity: 1; transform: scaleY(2); }
  25.     100%{ opacity: 0; }
  26. }
  27. @-webkit-keyframes spin{
  28.     0%  { opacity: 0; }
  29.     50% { opacity: 1; -webkit-transform: scaleY(2); }
  30.     100%{ opacity: 0; }
  31. }
  32. .load .spin-it:nth-child(1) {
  33.     -webkit-animation-delay: 0s;
  34.     -moz-animation-delay: 0s;
  35.     animation-delay: 0s;
  36.  
  37. }
  38. .load .spin-it:nth-child(2) {
  39.     -webkit-animation-delay: 0.1s;
  40.     -moz-animation-delay: 0.1s;
  41.     animation-delay: 0.1s;
  42. }
  43. .load .spin-it:nth-child(3) {
  44.     -webkit-animation-delay: 0.2s;
  45.     -moz-animation-delay: 0.2s;
  46.     animation-delay: 0.2s;
  47. }
  48. .load .spin-it:nth-child(4) {
  49.     -webkit-animation-delay: 0.3s;
  50.     -moz-animation-delay: 0.3s;
  51.     animation-delay: 0.3s;
  52. }
  53. .load .spin-it:nth-child(5) {
  54.     -webkit-animation-delay: 0.4s;
  55.     -moz-animation-delay: 0.4s;
  56.     animation-delay: 0.4s;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement