JSFiddle - React, Tailwind, and code Playground
by TheDiamondDoge
HTML
<div class="circle">
<div id="tick-mark" />
</div>
CSS
#tick-mark {
position: relative;
display: inline-block;
width: 23px;
height: 40px;
}
#tick-mark::before {
position: absolute;
left: 0;
top: 50%;
height: 50%;
width: 23px;
border-radius: 3px;
background-color: #336699;
content: "";
transform: translateX(10px) rotate(-45deg);
transform-origin: left bottom;
}
#tick-mark::after {
position: absolute;
left: 0;
bottom: 0;
height: 40px;
border-radius: 3px;
width: 100%;
background-color: #336699;
content: "";
transform: translateX(10px) rotate(-45deg);
transform-origin: left bottom;
}
.circle {
position: relative;
width: 95px;
height: 95px;
border-radius: 50%;
background: linear-gradient(318.55deg, #3372F1 9.26%, #5C8BFA 91.41%);
box-shadow: 0px 12.1304px 15.163px rgba(89, 137, 250, 0.17);
transform: rotate(90deg);
}
.success {
position: absolute;
width: 23.08px;
height: 40.76px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) rotate(-42.63deg);
border-right: 8px solid #FFFFFF;
border-bottom: 8px solid #FFFFFF;
box-sizing: border-box;
/* transform: rotate(-42.63deg); */
}