JSFiddle - React, Tailwind, and code Playground

by Timmy Willison

HTML

<div id="test"></div>

CSS

#test {
    background-color: #00d4aa;
    width: 100px;
    height: 20px;
}

JavaScript

var $test = $('#test');
setTimeout(function() {
    $test.width(200);
}, 1000);
setTimeout(function() {
    $test.css('width', '');
}, 2000);