JSFiddle - React, Tailwind, and code Playground

by secretgspot

HTML

<table id="titleTable">
    <tr>
        <td> TABLE </td>
        <td>TOSIN</td>
    </tr>
</table>

CSS

table { 
    width:100%;
}

td { 
    font-size:100px;
    text-align:center;
    padding:1em 0;
}

JavaScript

(function() {
    var s = document.getElementById('titleTable').style,
        f = false,
        c1 = '#000000',
        c2 = '#ffffff';

    setInterval(function() {
        s.backgroundColor = f ? c1 : c2;
        s.color = f ? c2 : c1;
        f = !f;
    }, 500);
})();