JSFiddle - React, Tailwind, and code Playground

by Richard Houltz

HTML

<div id="wrapper">
</div>

CSS

#wrapper{
    background-color: red;
    width: 100px;
    height: 100px;
}

JavaScript

var obj = {
    t: 0
};

$(obj).animate({
    t: 100 //I tried obj.t & t as well
}, {
    duration: 1000,
    easing: 'linear',
    step: function(now) {
        $("#wrapper").outerHTML = "rtest";
    }
});