Advertisement
afsarwebdev

Preloader

Nov 5th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. http://tobiasahlin.com/spinkit/
  2.  
  3. <div class="wada-preloader">
  4. <div class="spinner">
  5. <div class="rect1"></div>
  6. <div class="rect2"></div>
  7. <div class="rect3"></div>
  8. <div class="rect4"></div>
  9. <div class="rect5"></div>
  10. </div>
  11. </div>
  12.  
  13. .spinner > div {
  14. background-color: #333;
  15. height: 100%;
  16. width: 6px;
  17. display: inline-block;
  18.  
  19. -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  20. animation: sk-stretchdelay 1.2s infinite ease-in-out;
  21. }
  22.  
  23. .spinner .rect2 {
  24. -webkit-animation-delay: -1.1s;
  25. animation-delay: -1.1s;
  26. }
  27.  
  28. .spinner .rect3 {
  29. -webkit-animation-delay: -1.0s;
  30. animation-delay: -1.0s;
  31. }
  32.  
  33. .spinner .rect4 {
  34. -webkit-animation-delay: -0.9s;
  35. animation-delay: -0.9s;
  36. }
  37.  
  38. .spinner .rect5 {
  39. -webkit-animation-delay: -0.8s;
  40. animation-delay: -0.8s;
  41. }
  42.  
  43. @-webkit-keyframes sk-stretchdelay {
  44. 0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
  45. 20% { -webkit-transform: scaleY(1.0) }
  46. }
  47.  
  48. @keyframes sk-stretchdelay {
  49. 0%, 40%, 100% {
  50. transform: scaleY(0.4);
  51. -webkit-transform: scaleY(0.4);
  52. } 20% {
  53. transform: scaleY(1.0);
  54. -webkit-transform: scaleY(1.0);
  55. }
  56. }
  57. .wada-preloader .spinner {
  58. margin: 0;
  59. width: 50px;
  60. height: 40px;
  61. text-align: center;
  62. font-size: 10px;
  63. position: absolute;
  64. top: 50%;
  65. left: 50%;
  66. transform: translate(-50%, -50%);
  67. }
  68. .wada-preloader {
  69. position: fixed;
  70. z-index: 1050;
  71. overflow-y: hidden;
  72. left: 0;
  73. top: 0;
  74. background-color: #1C7ADC;
  75. width: 100%;
  76. height: 100%;
  77. }
  78.  
  79. .wada-preloader .spinner .rect1 {
  80. background-color: red;
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement