JSFiddle - React, Tailwind, and code Playground

by Shree Khanal

HTML

<div class="logo-outer">
    <h1>1 div</h1>
</div>
<div class="logo-outernew">
    <h1>2 div</h1>
</div>

CSS

.logo-outer {
    background:red;
    width: 50vw;
    height: 50vw;
}
.logo-outernew {
    background:green;
    width: 50vw;
    height: 50vw;
}

JavaScript

$(".logo-outer").show();
  $(".logo-outernew").hide();
     setTimeout(function () {
         $("..logo-outer").hide();
         $("..logo-outernew").show();
     }, 2000);