JSFiddle - React, Tailwind, and code Playground

by vrpruthvi

HTML

<div class="parent">
  <div class="child"></div>
</div>

CSS

.parent {
  height: 100%;
  width: 100%;
}

.child {
  height: 200px;
  width: 200px;
  background-color: grey;
}

JavaScript

$(document).ready(function(){
	setInterval(function() {
  	$('.child').height(Math.random() * Math.floor(400));
  }, 1000);
});