Squares Loader #5

HTML
<div class="loader"> <div class="square" ></div> <div class="square"></div> <div class="square last"></div> <div class="square clear"></div> <div class="square"></div> <div class="square last"></div> <div class="square clear"></div> <div class="square "></div> <div class="square last"></div> </div>
CSS
html, body { height: 100%; width: 100%; display: flex; justify-content: center; align-items: center; background: #e67e22; } .square { background: white; width: 30px; height: 30px; float: left; top: -10px; margin-right: 5px; margin-top: 5px; position: relative; opacity: 0; animation: enter 6s infinite; } .enter { top: 0px; opacity: 1; } .square:nth-child(1) { animation-delay: 1.8s; } .square:nth-child(2) { animation-delay: 2.1s; } .square:nth-child(3) { animation-delay: 2.4s; } .square:nth-child(4) { animation-delay: 0.9s; } .square:nth-child(5) { animation-delay: 1.2s; } .square:nth-child(6) { animation-delay: 1.5s; } .square:nth-child(8) { animation-delay: 0.3s; } .square:nth-child(9) { animation-delay: 0.6s; } .clear { clear: both; } .last { margin-right: 0; } @keyframes enter { 0% { opacity: 0; top: -10px; } 5% { opacity: 1; top: 0px; } 50.9% { opacity: 1; top: 0px; } 55.9% { opacity: 0; top: 10px; } }
JAVASCRIPT
Expand for more options Login