JSFiddle - React, Tailwind, and code Playground

HTML

<div>
</div>

CSS

@keyframes example {
  from{background:#FF0000}
  to{background:#00FF00}
}

div{
  width: 300px;
  height:200px;
  animation: 3s infinite example;
}