Go to homepage

Projects /

Looping Tabs

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

View Demo

Dependencies

All components are compatible with CodyFrame, Tailwind CSS or any other CSS framework.

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 ↗

Level up your CSS skills

Each month we email a 1-minute CSS tutorial to 20K developers

Awesome! We just sent you a confirmation link by email

Error - please try again or contact us

Your email address is already subscribed

Project duplicated

Project created

Globals imported

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