JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<div class="container">
<div class="row">
    <div class="col-md-4 active" style="background: green; height: 60px; width: 100%;">gh</div>
    <div class="col-md-4" style="background: black; height: 60px; width: 100%;">gh</div>
    <div class="col-md-4" style="background: purple; height: 60px; width: 100%;">gh</div>
    <div class="col-md-4" style="background: red; height: 60px; width: 100%;">gh</div>
    <div class="col-md-4" style="background: yellow; height: 60px; width: 100%;">gh</div>
    <div class="col-md-4" style="background: grey; height: 60px; width: 100%;">gh</div>
</div>

<button>Click</button>
</div>

CSS

.col-md-4{display: none;}
.col-md-4.active{display: block;}

JavaScript

$('button').click(function(){
    
    var currentBlock = $(".col-md-4.active");
    var innerWidth = window.innerWidth;
    
    currentBlock.animate({
        opacity:"toggle",
        left: "-=" + innerWidth/2
    },800,function(){
        currentBlock.css("left", "auto");
        currentBlock.toggleClass("active");
        currentBlock.next().css("margin-left",innerWidth/2);
        currentBlock.next().animate({
            opacity:"toggle",
            left: "-=" + innerWidth/2
        },800).toggleClass("active");
    });	
});