Slider In Tabs

This article is now outdated!

Visit this article instead for an updated version.



In case the Slider is added to a Tab, which hides the not visible content, the slider will still play further, and once the Tab is selected, the Slide will not be visible.



The issue based on the Calculation of the Slider Dimensions. To prevent this you can listen on the Tab Changes, and trigger the revredraw / revresume / revpause Methods of the slide, based on those events.

Once you open a Tab which is usually animate the opening with fade or scale effect, the slider need to be redrawed. The Slider only acts on Window resizing but not on the resizing of sourounding / wrapping containers.

You will need to build a custom js function which fires a function as soon the Tab button has been clicked.

A very simple form could look something like this:


This can be built more advanced where you stop and resume the Slider which is embeded in the tab via the Slider API: (note we have two different Slider in Two Tabs here):


The slider has a special section where custom JavaScript can be added. This section can be found inside the slider’s main settings page: