JSFiddle - React, Tailwind, and code Playground
by adamschwartz
HTML
<div class="example">
<div id="d1"><div id="d2" /></div>
</div>
CSS
.example {
margin: 100px;
}
@-webkit-keyframes 'rotate' {
0% {
-webkit-transform: rotateZ(0deg);
}
100% {
-webkit-transform: rotateZ(360deg);
}
}
#d1, #d2 {
width: 100px;
height: 100px;
border-radius: 30px;
-webkit-animation: rotate 3s linear;
-webkit-animation-iteration-count: infinite;
}
#d1 {
background: #444;
}
#d2 {
background: #fff;
}