JSFiddle - React, Tailwind, and code Playground
by p0rter
HTML
<script type="text/javascript" src="http://get.goXTK.com/xtk_edge.js"></script>
CSS
html, body {
background-color:#fff;
margin: 0;
padding: 0;
height: 100%;
overflow: hidden !important;
}
JavaScript
window.onload = function() {
var r = new X.renderer3D();
r.init();
var cube = new X.cube();
cube.texture.file = 'http://x.babymri.org/?xtk.png';
var slice = new X.slice();
slice.texture.file = 'http://x.babymri.org/?xtk.png';
r.add(cube);
r.add(slice);
r.onShowtime = function() {
slice.visible = true;
slice.modified();
};
r.render();
};