Trying to shape the .notch
with shaded colors using css and try not to disturb any other elements.
.cardContainer {
height: 180px;
background-color: ghostwhite;
max-width: 400px;
overflow: hidden;
}
.notch {
display: initial;
width: 200px;
height: 25px;
float: right;
background: linear-gradient(149deg, slategrey, slategrey 16%, coral 20%, coral 80%);
transform: skewX(64deg);
transform-origin: top right;
box-shadow: 0 0px 3px 2px coral;
border-left: 2px solid white;
border-bottom: 1px solid white;
}
.content {
display: flex;
align-items: center;
align-self: center;
height: 138px;
justify-content: center;
width: 100%;
}
<div class="cardContainer">
<div class="notch"></div>
<div class="content">SAmple Card</div>
</div>
Try this out.