JSFiddle - React, Tailwind, and code Playground
HTML
<div id="platines">
<div class="disc paused">
</div>
</div>
CSS
@-webkit-keyframes rotate {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
#platines {
background-color: #F00;
height: 200px;
width: 200px;
}
.disc {
background-color: #00F;
height: 100px;
width: 100px;
}
#platines .disc {
height: 86px;
width: 86px;
margin-top: 1px;
position: absolute;
z-index: 1;
-webkit-animation-name: rotate;
-webkit-animation-duration: 0.9s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
#platines .disc.paused {
-webkit-transition: -webkit-animation-duration 2s;
-webkit-animation-duration: 1s;
-webkit-animation-iteration-count: 4;
}