JSFiddle - React, Tailwind, and code Playground

HTML

<div class="heart">❤</div>

CSS

body {
  background: #20262E;
}


@keyframes heartbeat {
  0% { transform: scale(0.6); }
  100% { transform: scale(1.6); }
}

.heart {
  color: red;
  animation: 0.3s 52000000 alternate heartbeat;
  font-size: 200px;
  text-align: center;
}