JSFiddle - React, Tailwind, and code Playground
by kirito0709
HTML
<a id="link" href="#" onclick="funct()">Click</a>
<div id="test" style="float:left;border:1px solid #000;width:100px;height:100px;">Test</div>
<div id="test2"></div>
JavaScript
(function () {
var in_process = false;
$('#link').click(function (e) {
e.preventDefault();
if (!in_process) {
in_process = true;
$('#test').animate({height: '+=50'}, 2000, function () {
in_process = false;
location.href($('#link').attr('href'));
});
}
});
})();