🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

swichTab is a small and mobile-friendly jQuery tabs plugin which enables you to switch between tabbed contents by clicking tabs or using swipe events on touch devices.

tabs

Documentation

jQuery swichTab

markup

<div class="tabGroup tabGroup1">   <ul class="swichtab-controller">     <li data-swichtab="controller"><a href="#tab1">tab1</a></li>     <li data-swichtab="controller"><a href="#tab2">tab2</a></li>     <li data-swichtab="controller"><a href="#tab3">tab3</a></li>   </ul>   <div class="swichtab-contents">     <div id="tab1" class="swichtab-panel" data-swichtab="target">       <p>hogehoge</p>     </div>       <div id="tab2" class="swichtab-panel" data-swichtab="target">       <p>fugafuga</p>     </div>       <div id="tab3" class="swichtab-panel" data-swichtab="target">       <p>piyopiyo</p>     </div>   </div>   <!-- /.swichtab-contents --> </div> <!-- /.swichtab --> 

usage

<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>   <script src="./src/js/jquery.swichTab.js" charset="utf-8"></script> <script type="text/javascript">   $('.tabGroup1').swichTab(); </script> 

options

option name value type description
cahngePanel 'toggle'
(default)
string スフェクトしăȘă„ă§ă‚żăƒ–ă‚’ćˆ‡ă‚Šæ›żăˆ
'fade' string ăƒ•ă‚§ăƒŒăƒ‰ă‚€ăƒłă‚’ă—ăȘăŒă‚‰ă‚żăƒ–ă‚’ćˆ‡ă‚Šæ›żăˆ
swiper true boolean ă‚żăƒƒăƒă‚€ăƒ™ăƒłăƒˆćŻŸćżœăƒ‡ăƒă‚€ă‚čでă‚čăƒŻă‚€ăƒ—ă«ă‚ˆă‚‹ă‚żăƒ–ćˆ‡ă‚Šæ›żăˆă‚’èš±ćŻ
false
(default)
boolean ă‚żăƒƒăƒă‚€ăƒ™ăƒłăƒˆćŻŸćżœăƒ‡ăƒă‚€ă‚čでă‚čăƒŻă‚€ăƒ—ă«ă‚ˆă‚‹ă‚żăƒ–ćˆ‡ă‚Šæ›żăˆă‚’çŠæ­ą
index number
(default : 0)
number ćˆæœŸèĄšç€șæ™‚ă«ă‚ąă‚Żăƒ†ă‚Łăƒ–ă«ă™ă‚‹ă‚żăƒ–ă‚’æŒ‡ćźš

License

MIT


You May Also Like