mikejacobson / jquery-bootstrap-scrolling-tabs

jQuery plugin for making Bootstrap Tabs scroll horizontally without a scrollbar
MIT License
108 stars 63 forks source link

Doesn't work with jQuery Slim Build #77

Open marcus-at-localhost opened 4 years ago

marcus-at-localhost commented 4 years ago

jQuery Slim comes without animation effects and as far as I can tell, this plugin relies on them. Here is a non working example https://codepen.io/localhorst/pen/JjoNRxx

Obligatory question: Any chance this will become a vanilla js lib in the future (since bootstrap is moving away from it as well)? :)

For the record: vanilla js scroller https://benfrain.com/a-horizontal-scrolling-navigation-pattern-for-touch-and-mouse-with-moving-current-indicator/

mikejacobson commented 4 years ago

Correct, this plugin relies on jQuery animations. I originally built it back in the beforetimes when I needed to support IE8, so I couldn't use CSS transforms/transitions/animations.

I just started working on a fork of the plugin that's specifically for BS4 and uses jQuery Slim. If that comes together, the next step would be a vanilla js solution.

Thanks for the suggestion and the link to the vanilla js scroller.