JSFiddle - React, Tailwind, and code Playground

by Diana Lemen

HTML

<div class="one">

</div>

CSS

.one{
height: 30px;
background-color:  red;
}

JavaScript

setInterval(function() {
var a = 30;
a = a*2;
$('.one').css("width",a+"px");
}, 2000);