JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
<button>Click</button>
CSS
div {
position: absolute;
top: 0;
left: 0;
z-index: -999;
width: 100px;
height: 100px;
background: #000;
}
JavaScript
$(function() {
$('button').on('click', function() {
$('div').animate({
'left': 150
});
});
});