JSFiddle - React, Tailwind, and code Playground
HTML
<div id="parent">
<div id="worship">
<div>The Glitch</div>
</div>
</div>
CSS
body *{
outline: 1px dotted blue;
}
#worship{
background: red;
font-size: 28px;
font-weight: bold;
padding:40px;
position:absolute;
-moz-transition: none 0s ease 0s;
overflow:visible;
}
#parent{
-moz-perspective: 2000px;
position:relative;
-moz-transition: none 0s ease 0s;
margin:50px;
}
JavaScript
var angle = 0,
leftness = 0;
glitch = $('#worship');
setInterval(function(){
angle = (angle>360)?0:angle+1;
leftness = (leftness>100)?0:leftness+1;
glitch.show().css({
'-moz-transform' : "rotateY(" + angle + "deg)",
opacity : (leftness/100)
});
}, 16);