JSFiddle - React, Tailwind, and code Playground
by htmlboy
HTML
<div>
<div></div>
</div>
CSS
div{
width:200px;
height:200px;
position:relative;
-webkit-animation: circular 5s;
}
div > div{
width:50px;
height:50px;
background:purple;
position:absolute;
top:20px;
left:20px;
-webkit-animation:none;
}
@-webkit-keyframes circular{
0%{
-webkit-transform:rotate(0deg);
}
100%{
-webkit-transform:rotate(360deg);
}
}