Preloader

HTML
<div class="wrapper"> <div class="pl"> <div class="loader1"></div> <div class="loader2"></div> <div class="loader3"></div> <div class="loader4"></div> </div> </div>
CSS
body { text-align: center; } .wrapper { position: absolute; background: #000; width: 100%; height: 100%; } .pl { position: absolute; top: 50%; left: 50%; margin: -75px 0 0 -75px; } .loader1, .loader2, .loader3 { background: transparent; } .loader1 { position: absolute; border-radius: 50%; width: 150px; height: 150px; } .loader1:after { content: ""; position: absolute; border-top: 6px #910001 solid; border-radius: 50%; width: 150px; height: 150px; margin: -3px 0 0 -75px; animation: rotate 1.5s infinite linear; } .loader2 { position: absolute; border-radius: 50%; width: 100px; height: 100px; margin: 25px; } .loader2:after { content: ""; position: absolute; border-top: 6px #910001 solid; border-radius: 50%; width: 100px; height: 100px; margin: -3px 0 0 -50px; animation: rotate 2s infinite linear; } .loader3 { position: absolute; border-radius: 50%; width: 50px; height: 50px; margin: 50px; } .loader3:after { content: ""; position: absolute; border-top: 6px #910001 solid; border-radius: 50%; width: 50px; height: 50px; margin: -2px 0 0 -25px; animation: rotate 2.5s infinite linear; } .loader4 { position: absolute; background: linear-gradient(45deg,#910001,#000); border-radius: 50%; width: 30px; height: 30px; margin: 60px; animation: rotate 3s infinite linear; } @keyframes rotate { 0% { } 100% { transform: rotate(360deg); } }
JAVASCRIPT
Expand for more options Login