JSFiddle - React, Tailwind, and code Playground
by Serhii Matrunchyk
HTML
<div class="wrapper">
<div class="card">
<button>
ABC
</button>
</div>
<div class="footer">
FOOTER
</div>
</div>
CSS
.card {
width: 500px;
height: 300px;
border-radius: 5px;
background: blue;
display: flex;
flex-direction: row-reverse;
padding: 10px;
overflow: hidden;
}
button {
width: 80px;
height: 30px;
border-radius: 5px;
background: magenta;
border: 1px solid white;
position: relative;
}
button::after {
content: '';
width: 30px;
height: 30px;
padding: 80px;
position: absolute;
border: 100px solid #333;
border-radius: 500px;
top: 0;
left: 0;
}
.footer {
position: fixed;
width: 100%;
background: yellow;
height: 100px;
bottom: 0;
}