JSFiddle - React, Tailwind, and code Playground
HTML
<div class="display">ertertertvbngfhngnhghnghnghnghnertetr</div>
CSS
.display {
height: 50px;
width: 50px;
position: absolute;
top: 200px;
left: 200px;
}
JavaScript
$(document).ready(function() {
function getRandom(min, max) {
return min + Math.floor(Math.random() * (max - min + 1));
}
function go() {
var iCSS = ("rotate(" + getRandom(0, 359) + "deg)");
$(".display").css({
'-moz-transform': iCSS,
'-o-transform': iCSS,
'-webkit-transform': iCSS
});
setTimeout(go, 100);
}
go();
});