JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
CSS
div
{
width: 100px;
height: 100px;
margin: 50px 0 0 50px;
background: maroon;
animation: spinner 1s infinite linear;
perspective: 500px;
transform-style: preserve-3d;
}
@keyframes spinner {
0%{ transform: rotate3d(1, 1, 1, 0deg); }
100% { transform: rotate3d(1, 1, 1, 360deg); }
}