I'm currently utilizing next js for my web application, and I have encountered a specific requirement that needs addressing. You can find the visual representation of this requirement in the following image:
https://i.sstatic.net/zGVrl.png
The progress bar line is nested within the parent div element in the background. My goal is to conceal the starting point of the line behind its corresponding parent div.
Below is an example code snippet for illustration:
.parent-div{
display:flex;
flex-direction: column;
justify-content: center;
width: 320px;
height: 48px;
border-radius: 17px;
max-height: 48px;
}
.progress-bar{
height: 5px;
margin-top: 3px;
width: inherit;
border-radius: 17px;
background-color: #6d45fc;
}
<html>
<div class="parent-div">
<div class="progress-bar"></div>
</div>
</html>
How can I mask the progress bar line within the parent div?
This is the desired output: