JSFiddle - React, Tailwind, and code Playground
HTML
<div id = "wrapper">
<button id = "btn">BTN!!</button>
<div id = "test">e wvwe</div>
</div>
CSS
#test {
width: 400px;
height: 600px;
background-color: green;
transition: all 350ms;
-o-transition: all 350ms;
-moz-transition: all 350ms;
-webkit-transition: all 350ms;
overflow: hidden;
}
#wrapper button:active+#test {
width: 0px;
}