JSFiddle - React, Tailwind, and code Playground
by dmethvin
HTML
<div style="width: 50px; overflow: auto; border: 2px solid red; padding: 10px">
<div id="test" style="border: 1px solid #ccc; width: 80px">
test
</div>
</div>
CSS
.highlight{
background-color: red;
}
JavaScript
setTimeout(function(){ $("#test").toggleClass('highlight'); }, 1000);