JSFiddle - React, Tailwind, and code Playground

by WoJWoJ

HTML

<div class="one">
    <div class="two">aaa</div>
    <div class="three">bbb</div>
</div>

CSS

.one {
    color: green
}
.two {
    font-size: 300%
}

JavaScript

setInterval(one, 5000);
setInterval(two, 1000);

function one() {
    //$(".one .two").text("two");
    $(".one .two").toggle();
}

function two() {
    //$(".one .three").text("three");
    $(".one .three").toggle();
}