Loading Progress Bar
by suhyunified
HTML
<div class="loading-container">
Loading
</div>
CSS
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono&display=swap');
* {
font-family: 'Noto Sans Mono', monospace;
padding: 0;
margin: 0;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.loading-container {
position: relative;
width: 200px;
padding: 10px;
text-align: center;
border: 2px solid #001f10;
border-radius: 3px;
background-color: white;
letter-spacing: 5px;
text-transform: uppercase;
}
.loading-container::after {
content: '';
background-color: white;
top: 0;
left: 0;
height: 100%;
width: 100%;
position: absolute;
mix-blend-mode: difference;
transform: scaleX(0);
transform-origin: center left;
animation: grow 1.5s linear infinite;
}
@keyframes grow {
0% {
transform: scaleX(0);
}
100% {
transform: scaleX(1);
}
}