JSFiddle - React, Tailwind, and code Playground
by kougiland
HTML
<button>rotate</button>
<div id="cube">
</div>
CSS
#cube {
display: block;
width: 250px;
height: 250px;
background: #66F;
}
JavaScript
$(document).ready(function(){
deg = 0;
$('button').click(function(){
deg += 45;
$('#cube').css('-webkit-transform','rotateY('+deg+'deg)');
});
});