JSFiddle - React, Tailwind, and code Playground

by EoghanM

HTML

<div />

CSS

div { height: 400px; border: 1px solid red; width: 200px; transition: height 100s linear; }
div.changing { height:1200px; }

JavaScript

setInterval(function(){ document.body.children[0].innerHTML = getComputedStyle(document.body.children[0])['height']}, 300)

setTimeout(function(){ document.body.children[0].classList.toggle('changing') }, 1000)