Go to homepage

Projects /

Looping Tabs

Accessible tabbed content that loops automatically from one item to the next.

View Demo

How to

The Looping Tabs component is used to group related content, and change its visibility using labels - so that only the selected content panel is visible. It automatically loops from one panel to the next one.

If you want to change the duration of the loop, add a data-autoplay-interval to the .loop-tabs element; set it equal to the custom duration (in milliseconds) that you want to use (default is 5000).

If you want to turn the autoplay off, add a data-autoplay="off" to the .loop-tabs element.

⚠️ Important: make sure the value of the href attribute of the control label matches the id of the associated panel so that if JavaScript is disabled, each label links to the appropriate panel.

Categories

Bug report & feedback

Component Github page ↗

Project duplicated

Project created

Globals imported

There was an error while trying to export your project. Please try again or contact us.