I don't think it's possible to do this with a box shadow because you cannot set a starting point for the x
position.
.progress-container {
width: 100%;
height: 11px;
position: relative;
background: #EAEFF5;
border-radius: 5px;
}
.progress-container::before,
.progress-container::after {
content: "";
position: absolute;
border-radius: inherit;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.progress-container::before {
background-color: #FF7800;
width: 500px;
}
.progress-container::after {
background-color: #0AA693;
width: 80px;
}
<div class="progress-container">
</div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…