JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://chrismichaelscott.github.io/SVG3D/svg3d.js"></script>
<div id="canvas" />
CSS
#canvas {
width: 500px;
height: 400px;
}
JavaScript
var scene = SVG3D(document.getElementById("canvas"));
var box = scene.draw.cuboid
(
[0, 14, -10],
[-10, 14, 0],
[10, 14, 0],
[0, 36, -12]
);
scene.render();
scene.animate.rotateOnY(box, null, null, null, true);