Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var Webflow = Webflow || [];
- Webflow.push(function() {
- $('.h-wrap_tab').on('click', '.b-tabs__arrow, .b-tabs__arrow-up', function() {
- let direction = $(this).hasClass('b-tabs__arrow') ? 1 : -1;
- let tablinks = $(this).parent().find('.w-tab-menu');
- let index = tablinks.find('.w--current').index() + direction;
- index = index >= tablinks.children().length ? 0 : index;
- tablinks.find('.w-tab-link').eq(index).trigger('click');
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement