Could you kindly review the code link provided below? It is designed using the flex-box property for structuring.
Here is the link for reference: https://jsfiddle.net/yudizsolutions/oa8pyjuq/
.btngroup {
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #eeeeee;
border-right-color: transparent;
border-radius: 10px;
max-width: 80%;
margin: 0 auto;
}
.btngroup .btn {
position: relative;
border: 0;
background: transparent;
color: #b2b2b2;
padding: 20px 40px 20px 50px;
font-size: 14px;
font-weight: 300;
flex: 1;
cursor: pointer;
transition: all ease-in-out 0.5s;
}
.btngroup .btn::after,
.btngroup .btn::before {
position: absolute;
content: '';
}
.btngroup .btn.active::after,
.btngroup .btn:hover::after {
background-color: #fbfbfb;
height: 100%;
width: 100%;
top: 0;
left: -4px;
z-index: -1;
}
.btngroup .btn::before {
top: 50%;
right: -15px;
height: 44px;
width: 44px;
border: 1px solid #eeeeee;
background: linear-gradient(0deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255) 10%);
border-bottom-color: transparent;
border-left-color: transparent;
transform: translateY(-50%) rotate(45deg);
border-radius: 10px;
}
.btngroup .btn.active::before,
.btngroup .btn:hover::before {
background: #fbfbfb;
}
<div class="btngroup">
<button type="button" class="btn">Organization</button>
<button type="button" class="btn">Project</button>
<button type="button" class="btn">Applications</button>
</div>