JSFiddle - React, Tailwind, and code Playground

by edelman

HTML

<div id="square"></div>

CSS

#square {
    width: 10px;
    height: 10px;
    margin: 100px; /*for centering purposes*/
    background: blue;
    -webkit-transition: width 1s, height 1s;
    -moz-transition: width 1s, height 1s;
    -ms-transition: width 1s, height 1s;
    transition: width 1s, height 1s;
}
#square:hover {
    width: 100px;
    height: 100px;
}