JSFiddle - React, Tailwind, and code Playground
CSS
.dinamic{
height: 500px;
width: 500px;
position: absolute;
left: 0px;
top: 0px;
border: 1px solid #333;
}
JavaScript
for(i=0;i<5;i++){
var rotate=Math.floor(Math.random() * (360 - 1 + 1)) + 1;
$('<div class="dinamic"></div>').css({
'-moz-transform': 'rotate(' + rotate + 'deg)',
WebkitTransform: 'rotate(' + rotate + 'deg)',
'transform': 'rotate(' + rotate + 'deg)',
}).appendTo('body')
}