Macie pomysł czemu kwadrat się odwraca?
<div class="background">
<div class="heart circle one"></div>
<div class="heart circle two"></div>
<div class="heart squere three"></div>
</div>
@keyframes heartbeat {
50%{
transform: scale(1.5);
}
}
.heart{
background: firebrick;
width: 100px;
height: 100px;
animation: heartbeat 5s infinite;
}
.background{
margin: 50px;
}
.circle{
border-radius: 50%;
}
.two{
margin-top: -100px;
margin-left: 72px;
}
.three{
transform: rotate(45deg);
margin-left: 37px;
margin-top: -65px;
width: 100px;
height: 100px;
}