Home > Mobile >  Generate inverted arc with clip path
Generate inverted arc with clip path

Time:03-20

How can I achieve an inverted arc using clip path?

enter image description here

My current code.

.container {
  width: 60px;
  height: 60px;
  clip-path: path("M 0 60 Q 0 0 60 0");
  background-color: blue;
}
<div ></div>

CodePudding user response:

you can use something like this:

.container {
  width: 60px;
  height: 60px;
  clip-path: path("M 60,0 H 0 V 60 C 0,30 30,0 60,0 Z");
  background-color: blue;
}
<div ></div>

  • Related