JSFiddle - React, Tailwind, and code Playground
HTML
<div class="heart">❤</div>
CSS
body {
background: #20262E;
}
@keyframes heartbeat {
0% { transform: scale(0.9); }
100% { transform: scale(1.1); }
}
.heart {
color: red;
animation: 1.3s 52000000 alternate heartbeat;
font-size: 100px;
text-align: center;
}