JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<div id="frame">
    <div id = "block1" class="">test</div>
</div>

CSS

#block1 {
    
 background-color:red; 
 width:100px;
}

#frame.on #block1 {
    width:400px;
}

JavaScript

$("#frame").delay(1000).addClass("on", {
    duration: 1000,
    children: true
});