JSFiddle - React, Tailwind, and code Playground
HTML
<div class="square">Hello World</div>
CSS
.square {
width:100px;
height:100px;
background:red;
-webkit-animation:spin 4s infinite;
}
@-webkit-keyframes spin {
from {
-webkit-transform: rotateX(135deg) rotateY(135deg);
}
to {
-webkit-transform: rotateX(855deg) rotateY(855deg);
}
}