JSFiddle - React, Tailwind, and code Playground
by witold
HTML
<table>
<tr>
<td id="left"><div>A</div></td>
<td id="right"><div>B</div></td>
</tr>
</table>
CSS
table {
width: 100%;
border-collapse: collapse;
}
td {
width: 25%;
border:0;
padding: 0;
color: white;
text-align: center;
-webkit-transition: width 300ms ease-in-out;
-moz-transition: width 300ms ease-in-out;
-ms-transition: width 300ms ease-in-out;
-o-transition: width 300ms ease-in-out;
transition: width 300ms ease-in-out;
}
td div {
width: 40px;
height: 40px;
border-radius: 50px;
background: rgba(255,255,255,.2);
padding: 20px;
margin: 100px auto;
font-family: sans-serif;
font-size: 40px;
line-height: 1;
}
td#left {
background: red;
}
td#right {
background: blue;
}
td#left:hover {
width: 75%;
}
td#right:hover {
width: 75%;
}