I am working on a custom tab that has an animated bottom border that moves from one tab to another in
Example: http://codepen.io/anon/pen/NxNZLv
<div class="tab-nav-wrapper">
<ul>
<li class="one"><a href="#">ONE</a></li><li class="two"><a href="#">TWO</a></li><li class="three"><a href="#">THREE</a></li><li class="four"><a href="#">FOUR</a></li>
<hr />
</ul>
</div>
<div class="tab-content-wrapper">
<div class="tab1-c"><p>This is ONE</p></div>
<div class="tab2-c"><p>This is TWO</p></div>
<div class="tab3-c"><p>This is THREE</p></div>
<div class="tab4-c"><p>This is FOUR</p></div>
<div>
I want related items to be displayed depending on what clicking on each tab. I tried to make it work, but got errors.
The event attempted to convert this to boot tabs that did not work. It breaks the animation I want on tabs
Boostrap based example: http://codepen.io/anon/pen/KVzjJo
I updated the fiddle and wrote a script for each tab. instead, I wanted one script to control it.
http://codepen.io/anon/pen/NxNZLv
Can we improve it?