JSFiddle - React, Tailwind, and code Playground
by Tushar Gupta
HTML
<body>
<h1>Hello</h1>
<div class="divclass"></div>
</body>
CSS
div.divclass {
width:100px;
height: 100px;
margin: 20px;
border: solid 1px;
background: url(http://www.google.co.cr/logos/classicplus.png);
background-repeat: no-repeat;
}
JavaScript
$(document).ready(function () {
var width = $('.divclass').width();
for (var i = 0; i < 6; i++) {
width = width + 20;
$(".divclass").animate({width: width}, 2000);
};
});