JSFiddle - React, Tailwind, and code Playground

HTML

<div class="table-wrapper">
    <table border="1px" width="100%" cellpadding="0px" cellspacing="0px">
        <tr style="text-align:center">
            <td>A</td>
            <td>B</td>
            <td>C</td>
            <td>B</td>
            <td>A</td>
        </tr>
        <tr style="text-align:center">
            <td>A</td>
            <td>B</td>
            <td>C</td>
            <td>B</td>
            <td>A</td>
        </tr>
    </table>
</div>

CSS

.table-wrapper{
    position: relative;
    overflow: hidden;
}

tr{
    position: relative;
}

tr:before
{
    position: absolute;
    content: "";
    width: 100%;
    height: 20px;
    z-index: -1;
}

tr:hover:before
{
    background: -webkit-linear-gradient(left, rgba(255,0,0,0), rgba(255,0,0,1)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(right, rgba(255,0,0,0), rgba(255,0,0,1)); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(right, rgba(255,0,0,0), rgba(255,0,0,1)); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1)); /* Standard syntax (must be last) */
}