JSFiddle - React, Tailwind, and code Playground

by eget teteete

HTML

<div class="log swing">logg</div>

CSS

@keyframes myMove {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(200deg);
  }
}

.log {
  width: 50px;
  height: 50px;
  background-color: red;
  margin: 0 auto;
}

.log:hover {
  cursor: pointer;
}

.log::marker{
  animation: myMove 3s;
}