JSFiddle - React, Tailwind, and code Playground
HTML
<br/>
<br/>
<br/>
<div class='thisone'></div>
CSS
.thisone {
-webkit-animation-name: slybounce;
-webkit-animation-duration: 3s;
-webkit-animation-timing-function: ease-in-out;
-webkit-animation-iteration-count: infinite;
-webkit-animation-delay: 0;
-webkit-animation-play-state: running;
-moz-animation-name: slybounce;
-moz-animation-duration: 3s;
-moz-animation-timing-function: ease-in-out;
-moz-animation-iteration-count: infinite;
-moz-animation-delay: 0;
-moz-animation-play-state: running;
width: 50px;
height: 30px;
border-radius: 4px;
-moz-border-radius: 4px;
background: red;
display: block;
}
@-webkit-keyframes slybounce {
0% {
-webkit-transform: translate(0, -5);
}
50% {
-webkit-transform: translate(0, 5px);
}
100% {
-webkit-transform: translate(0, -5);
}
}
@-moz-keyframes slybounce {
0% {
-moz-transform: translate(0, -5);
}
50% {
-moz-transform: translate(0, 5px);
}
100% {
-moz-transform: translate(0, -5);
}
}