JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
CSS
div {
width: 100px;
height: 100px;
background: red;
transition: all 500ms ease;
}
div:hover {
width: 200px;
height: 200px;
background: blue;
}
<div></div>
div {
width: 100px;
height: 100px;
background: red;
transition: all 500ms ease;
}
div:hover {
width: 200px;
height: 200px;
background: blue;
}