inner heart
by jshacker
HTML
<div id="heart">
<div id="inner-heart"></div>
</div>
CSS
div {
height: 120px;
width: 80px;
background-color: red;
position: absolute;
top: 100px;
left: 50%;
transform: translate(-50%, -50%);
}
#heart {
transform: rotate(45deg);
border-radius: 50% 50% 2% 2%;
}
#heart::after {
background-color: red;
content: " ";
height: 80px;
width: 120px;
position: absolute;
bottom: -2%;
left: -52%;
border-radius: 50% 2% 2% 50%;
}
#inner-heart {
height: 90px;
width: 60px;
background-color: pink;
z-index: 10;
border-radius: 50% 50% 0 0;
position: absolute;
top: 10%;
left: 5%;
transform: rotate(0deg);
}
#inner-heart::after {
background-color: pink;
content: " ";
height: 60px;
width: 90px;
position: absolute;
bottom: -2%;
left: -50%;
border-radius: 50% 2% 2% 50%;
}