How can I draw the following background image?
1 Answer
conic-gradient, mask and pseudo element
html:before,
html:after {
content: "";
position: fixed;
aspect-ratio: 1;
width: 130%;
left: -40%;
bottom: 20%;
border-radius: 50%;
border: 20px solid green;
-webkit-mask: conic-gradient(#000, #0000 65%);
}
html:after {
transform: translate(15%);
}
2 Comments
Ruhul Amin
Excellent! Can't we do similar curve only for a section of a page?@temani-afif
Temani Afif
@RuhulAmin apply the pseudo element to that section instead of html
