JSFiddle - React, Tailwind, and code Playground

by blackts

HTML

<div class="demo1-bg1">
    <div id="J_bg2_1" class="demo1-bg2-1"></div>
    <div id="J_bg2_2" class="demo1-bg2-2"></div>
</div>

CSS

body{text-align: center}
.demo1-bg1{
    width: 100px;
    height: 100px;
    display: flex;
    margin: 50px auto;
    border-radius: 50%;
    box-shadow: 0 0 0 10px red inset;
}
.demo1-bg2-1,.demo1-bg2-2{
    position: relative;
    margin: 0;
    padding: 0;
    flex: 1;
    height: 80px;
    background: #fff;
    border: 10px solid grey;
}
.demo1-bg2-1{
    border-radius: 50px 0 0 50px;
    border-color: gray transparent gray gray;
    transform-origin: 100% 50%;
    z-index: 1;
    transform: rotate(36deg);
}
.demo1-bg2-2{
    border-radius: 0 50px 50px 0;
    transform: rotate(0deg);
    border-color: red red red transparent;
    transform-origin: 0 50%;
    z-index: 2;
}