JSFiddle - React, Tailwind, and code Playground

by Torwan

HTML

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css">
<div class="center">
      <i class="fa fa-heart heart" aria-hidden="true"></i>

    </div>

CSS

body {
  height: 100vh;
  overflow: hidden;
}

.center {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 100vh;
}

.heart {
  color: red;
  font-size: 50px;
  animation: heart-pulse 0.9s infinite ease-out;
}

@keyframes heart-pulse {
  0% {
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.2);
  }
  70% {
    transform: scale(0.65);
  }
  100% {
    transform: scale(0.3);
  }
}


.master{
  color:black;
  float:right;
}

@media (max-width:900px){
  .master{
    display:none;
  }
}