Responsive Tabs is a jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint. You can use this plugin as a solution for displaying tabs elegantly on desktop, tablet and mobile.
I am using vanilla window.matchMedia to change the animation settings by breakpoint taking advantage of $tabs.responsiveTabs('option', 'animation', 'fade');
This works really well by the way !!
However if I have 3 breakpoints and I switch between fade, slide and default when default is set it is changing my original duration to 0
Can I suggest rather than overwriting this globally ie _this.options.duration = 0 this is just overwritten at the function level ie disabled: 0?
I can submit a PR if it would help?
What I have in mind would be a non breaking change
I am using vanilla
window.matchMedia
to change the animation settings by breakpoint taking advantage of$tabs.responsiveTabs('option', 'animation', 'fade');
This works really well by the way !!
However if I have 3 breakpoints and I switch between
fade
,slide
anddefault
when default is set it is changing my originalduration
to0
Can I suggest rather than overwriting this globally ie
_this.options.duration = 0
this is just overwritten at the function level iedisabled: 0
?I can submit a PR if it would help?
What I have in mind would be a non breaking change