loreng

paste

Nov 17th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.17 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>Loading</title>
  5.         <style type="text/css">
  6.             html,
  7.             body{
  8.                 margin: 0;
  9.                 padding: 0;
  10.                 width: 100%;
  11.                 height: 100%;
  12.                 background-color: darkblue;
  13.             }
  14.             .loading{
  15.                 position: absolute;
  16.                 left: 50%;
  17.                 top: 50%;
  18.                 transform: translate(-50%,-50%);
  19.                 display: flex;
  20.                 align-items: center;
  21.             }
  22.             .bar{
  23.                 width: 6px;
  24.                 height: 100px;
  25.                 background-color: #FFF;
  26.                 margin: 0 3px;
  27.                 animation: loading 0.8s infinite;
  28.             }
  29.            
  30.             .bar:nth-child(2){
  31.                 animation-delay: 0.1s;
  32.             }
  33.             .bar:nth-child(3){
  34.                 animation-delay: 0.2s;
  35.             }
  36.             .bar:nth-child(4){
  37.                 animation-delay: 0.3s;
  38.             }
  39.             .bar:nth-child(5){
  40.                 animation-delay: 0.4s;
  41.             }
  42.             .bar:nth-child(6){
  43.                 animation-delay: 0.5s;
  44.             }
  45.             @keyframes loading{
  46.                 0%{
  47.                     height: 0;
  48.                 }
  49.                 50%{
  50.                     height: 100px
  51.                 }
  52.                 100%{
  53.                     height: 0;
  54.                 }
  55.             }
  56.         </style>
  57.     </head>
  58.     <body>
  59.         <div class="loading">
  60.             <div class="bar"></div>
  61.             <div class="bar"></div>
  62.             <div class="bar"></div>
  63.             <div class="bar"></div>
  64.             <div class="bar"></div>
  65.             <div class="bar"></div>
  66.         </div>
  67.     </body>
  68. </html>
Advertisement
Add Comment
Please, Sign In to add comment