JSFiddle - React, Tailwind, and code Playground

by Dineshkani

HTML

<div id="firstdiv" class="sample">
         Hello Jquery
</div>
<input type="button" value="animate" />

CSS

.sample{
    width: 200px;
    height: 200px;
    color: white;
    background-color: grey;
    position:relative;
}

JavaScript

$("input").on("click",function(){
    $("#firstdiv").animate({"left":"50px","height":"300px","width":"300px"},700,function(){
        //I am callback function execute after animation finished.
        alert("finished");
    })
});