JSFiddle - React, Tailwind, and code Playground

HTML

<div class="slide-left">Left</div>
<div>
<div class="slide-right">Right</div>
    <div>to the right of right</div>
</div>

CSS

div{width:100px; display:inline;}

JavaScript

$(function(){
    $(".slide-right")
   .css("margin-right",$(this).width())
   .delay(400)
   .animate({
   marginRight:0
}, 900);
});