JSFiddle - React, Tailwind, and code Playground
by js_test
HTML
<div class = 'animated'>
Glee is awesome!
</div>
CSS
@-webkit-keyframes rotate {
0% {
-webkit-transform: rotate(0deg);
}
83% { /*2.4 / 2.9 = 0.827*/
-webkit-transform: rotate(360deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
.animated {
-webkit-animation-name: rotate;
-webkit-animation-duration: 2.9s;
-webkit-animation-iteration-count: infinite;
-webkit-transition-timing-function: ease-in-out;
height: 200px;
width: 200px;
background-color: rgb(0, 162, 232);
color: white;
}