Thu Sep 01 2022
Glowing Progress Bar
CSS4348 views
File Name: glowing-progress-bar.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Glowing Loading Bar</title>
<style>
* {
margin: 0;
padding: 0;
}
body { background-color: #292929; }
section {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
ul#loader {
width: 450px;
list-style: none;
display: flex;
align-items: center;
gap: 5px;
}
ul#loader li {
width: calc(100% / 5);
height: 6px;
background-color: rgba(255,255,255,0);
box-shadow: inset 0 0 10px 1px rgba(117,182,255,0.4),
0 0 20px rgba(117,182,255,0.1);
animation: loading 2s steps(6) infinite;
animation-delay: calc(2s * var(--i));
}
@keyframes loading {
0%, 100% {
background-color: rgba(255,255,255,0);
box-shadow: inset 0 0 10px 1px rgba(117,182,255,0.4),
0 0 20px rgba(117,182,255,0.1);
}
50% {
background-color: rgba(255,255,255,1);
box-shadow: inset 0 0 10px 1px rgba(117,182,255,0.5),
0 0 20px rgba(117,182,255,1);
}
}
</style>
</head>
<body>
<section>
<ul id="loader">
<li style="--i:0"></li>
<li style="--i:1"></li>
<li style="--i:2"></li>
<li style="--i:3"></li>
<li style="--i:4"></li>
</ul>
</section>
</body>
</html>
Result Screenshot(s)
Author:Geekboots