Advertisement
salmancreation

PRELOADER

Sep 21st, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.56 KB | None | 0 0
  1.     <!-- preloader start -->
  2.     <div class="pre-loader">
  3.         <div class="loading">
  4.             <span>loading...</span>
  5.         </div>
  6.     </div>
  7.     <!-- preloader end -->
  8.  
  9.  
  10. /* ----------------------------------------
  11.    -------------- 3.PRELOADER -------------
  12.    ---------------------------------------- */
  13. .pre-loader {
  14.   background-color: #6A49F0;
  15.   height: 100%;
  16.   left: 0;
  17.   position: fixed;
  18.   text-align: center;
  19.   top: 0;
  20.   width: 100%;
  21.   z-index: 9999;
  22.   overflow: hidden;
  23. }
  24. .loading {
  25.     display: inline-block;
  26.     width: 80px;
  27.     height: 80px;
  28.     top: 50%;
  29.     margin-left: -40px;
  30.     margin-top: -40px;
  31.     border-radius: 50%;
  32.     box-sizing: border-box;
  33.     border-top: 10px solid #fff;
  34.     animation: a1 2s linear infinite;
  35.     position: absolute;
  36. }
  37.  
  38. .loading::before, .loading::after {
  39.     width: 80px;
  40.     height: 80px;
  41.     content: "";
  42.     position: absolute;
  43.     left: 0;
  44.     top: -10px;
  45.     box-sizing: border-box;
  46.     border-radius: 50%;
  47. }
  48. .loading::before {
  49.     border-top: 10px solid #ff6f61;
  50.     transform: rotate(120deg);
  51. }
  52. .loading::after {
  53.     border-top: 10px solid #73c32f;
  54.     transform: rotate(240deg);
  55. }
  56. .loading span {
  57.     position: absolute;
  58.     text-align: center;
  59.     width: 60px;
  60.     left: 0;
  61.     line-height: 60px;
  62.     text-transform: capitalize;
  63.     color: #fff;
  64.     animation: a2 2s linear infinite;
  65.     font-size: 12px;
  66.     height: 60px;
  67. }
  68.  
  69. @keyframes a1 {
  70.     to {
  71.         transform: rotate(360deg);
  72.     }
  73. }
  74. @keyframes a2 {
  75.     to {
  76.         transform: rotate(-360deg);
  77.     }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement