JSFiddle - React, Tailwind, and code Playground
HTML
<div class="blue pyramid ui-draggable northwest destroyed blank" style="position: absolute; left: 450px; top: 150px;"></div>
<input type="button" value="click" id="foo" />
JavaScript
$('#foo').on('click', function () {
var currentTile = $('div');
setTimeout(function () {
currentTile.removeClass().addClass('blank ui-draggable');
}, 1000);
});