What you had was almost there
The idea is that you place your divs side by side and move them together when you move the tabs.
To make it work, give each of your divs a starting point, for example. 0px, 400px, 800px and position: relative:
<div class="tab-pane active" id="options" style="left: 0; position: relative;"> <div class="tab-pane" id="information" style="left: 400px; position: relative;">
In the slide view, all divs 400px further to the left, animating the left property:
$(".tab-content div#options").animate({left: "-400px"}, { duration: 350, easing: 'easeInOutCirc' }); $(".tab-content div#information").animate({left: "0px"}, { duration: 350, easing: 'easeInOutCirc' });
Note that I changed the selector to target specific divs, not all divs in tab-content.
Here is a link to bin with my changes .
I just made the first two divs, but you should get an idea from this.
Hope this helps.
source share