JSFiddle - React, Tailwind, and code Playground
by doug65536
HTML
<div class="x">Click me to reset position</div>
CSS
.x {
position: relative;
top: 0px;
left: 200px;
}
JavaScript
$(function() {
$('.x').animate({left: '400px'}, 4000);
$('.x').on('click', function() {
$(this).css({left:''});
});
});