0
I’m trying to reproduce the circular progress bar effect, as per this tutorial .
I’m not able to create the pseudo-elements properly. My CSS looks like this:
.circular-progress{
width: 12rem;
height: 12rem;
border-radius: 50%;
margin: auto;
background: linear-gradient(0deg, rgb(102, 102, 102) 50%, rgba(102, 102, 102,.2) 50%);
position: relative;
&:before{
content: "";
width: 12rem;
height: 12rem;
position: absolute;
top: 0;
left: 0;
background: red content-box;
border-radius: 50%;
padding: .5em;
box-sizing: border-box;
}
}
The HTML looked like this:
<div class="circular-progress"></div>