Home > Net >  How can I draw the following lines using CSS
How can I draw the following lines using CSS

Time:08-27

How can I draw the following background image?

Lines using CSS

CodePudding user response:

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%);
}

  • Related