JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<ul class="nav nav-tabs">
<li class="active"><a href="#home" data-toggle="tab">Home</a></li>
<li><a href="#profile" data-toggle="tab">Profile</a></li>
<li><a href="#messages" data-toggle="tab">Messages</a></li>
<li><a href="#settings" data-toggle="tab">Settings</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane fade active in" id="home">This is the home page content </div>
<div class="tab-pane fade" id="profile">This is the profile page content </div>
<div class="tab-pane fade" id="messages">This is the message page content </div>
<div class="tab-pane fade" id="settings">This is the settings content</div>
</div>
CSS
#home, #profile, #messages, #settings {
position: relative;
}
body {overflow: hidden;}
JavaScript
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
var url = new String(e.target);
var pieces = url.split('#');
if (pieces[1] == 'profile'){
$('#profile').css('left','-'+$(window).width()+'px');
var left = $('#profile').offset().left;
$("#profile").css({left:left}).animate({"left":"0px"}, "10");
}
if (pieces[1] == 'home'){
$('#home').css('right','-'+$(window).width()+'px');
var right = $('#home').offset().right;
$("#home").css({right:right}).animate({"right":"0px"}, "10");
}
if (pieces[1] == 'messages'){
$('#messages').css('top','-'+$(window).height()+'px');
var top = $('#messages').offset().top;
$("#messages").css({top:top}).animate({"top":"0px"}, "10");
}
if (pieces[1] == 'settings'){
$('#settings').css('bottom','-'+$(window).height()+'px');
var bottom = $('#settings').offset().bottom;
$("#settings").css({bottom:bottom}).animate({"bottom":"0px"}, "10");
}
})