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 finally came around to create a PR containing @ajmueller's code for a new option called scrollToAccordionOffsetElement (see https://github.com/jellekralt/Responsive-Tabs/pull/55). It only takes into consideration the outerHeight of the offset element and asumes that element is positioned at the very top of the window.
Hey Jelle,
I finally came around to create a PR containing @ajmueller's code for a new option called
scrollToAccordionOffsetElement
(see https://github.com/jellekralt/Responsive-Tabs/pull/55). It only takes into consideration the outerHeight of the offset element and asumes that element is positioned at the very top of the window.