Hello, there is a need to switch Bootstrap tabs with a swipe, with the effect of slide. Now I use the code below, but the switch takes place with the fade effect:

$(".tab-content").swiperight(function() { var $tab = $('#tablist .active').prev(); if ($tab.length > 0) $tab.find('a').tab('show'); }); $(".tab-content").swipeleft(function() { var $tab = $('#tablist .active').next(); if ($tab.length > 0) $tab.find('a').tab('show'); }); 
  • I must say that you will have to write the code yourself. In Bootstrap, only one type of tab switching animation is supported - fade. - VenZell
  • Maybe there is some alternative, say without Bootstrap? - Valery Alikin
  • 2
    Of course there is - any slider with the support of its controls. For example: kenwheeler.imtqy.com/slick - VenZell
  • Like this? ru.stackoverflow.com/a/518013/208926 - Gleb Kemarsky

0