Loader by NlghtM4re
#212121
1.loader { 2 width: 60%; 3 height: 10px; 4 border-radius: 2px; 5 background-color: rgba(0, 0, 0, 0.2); 6 position: absolute; 7} 8 9.loader::before { 10 content: ""; 11 position: absolute; 12 background-color: rgb(9, 188, 9); 13 width: 0%; 14 height: 100%; 15 border-radius: 2px; 16 animation: load 3.5s ease-in-out infinite; 17 box-shadow: rgb(9, 188, 9) 0px 2px 29px 0px; 18} 19 20.container { 21 display: flex; 22 justify-content: center; 23} 24 25@keyframes load { 26 50% { 27 width: 100%; 28 } 29 30 100% { 31 right: 0; 32 left: unset; 33 } 34}
1.5K views
1.5K views
MIT License