body {
    background: linear-gradient(-45deg, #ffe2d3, #a6dee2, #cfc2fc);
}

.heart {
    height: 200px;
    width: 200px;
    background-color: #f4959b;
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: rotate(-45deg);
    animation-name: beat;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
}

.heart::after {
    content: "";
    height: 200px;
    width: 200px;
    background-color: #f4959b;
    border-radius: 50%;
    position: absolute;
    top: 0px;
    left: 100px;
}

.heart::before {
    content: "";
    height: 200px;
    width: 200px;
    background-color: #f4959b;
    border-radius: 50%;
    position: absolute;
    top: -100px;
    left: 0px;
}

@keyframes beat {
    0% {
        transform: scale(1) rotate(-45deg);
    }
    50% {
        transform: scale(0.5) rotate(-45deg);
    }
}
