JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<div class="container-fluid">
<div class="row-fluid">
<div id="col1" class="col-xs-3 col-md-3">Left Column text here
<br/>Left Column text here
<br/>Left Column text here
<br/>Left Column text here
<br/>Left Column text here
<br/>Left Column text here
<br/>Left Column text here
<br/>Left Column text here
<br/>Left Column text here
<br/>Left Column text here
<br/>Left Column text here
<br/>
</div>
<div id="col2" class="col-xs-9 col-sm-9"> <a id="trig" class="btn btn-primary visible-xs">Reflow Me</a>
<br/>Right Column text here
<br/>Right Column text here
<br/>Right Column text here
<br/>
</div>
</div>
</div>
CSS
.row-fluid {
overflow:hidden;
}
.row-fluid div {
-webkit-transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
-moz-transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
-o-transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}
#col1 {
background-color: #A6BFBA;
}
#col2 {
background-color: #DE4124;
}
#trig {
margin: 50px;
}
.row-fluid .col-0 +[class*="col"] {
margin-left: 0;
}
.offcanvas {
margin-left:0;
}
@media all and (max-width:768px) {
.col-0 {
width:0;
padding:0;
overflow:hidden;
float:left;
display:none;
}
.offcanvas {
margin-left:-25%;
height:0px;
opacity:0;
}
}
JavaScript
$(document).ready(function () {
$('#trig').on('click', function () {
$('#col1').toggleClass('offcanvas');
$('#col2').toggleClass('col-xs-12 col-xs-9');
});
});