Resource Documentation
Core (Essential for Functionality)
Add the following script before the closing body tag.
<script src="https://cdn.jsdelivr.net/gh/hadiaslam-repo/pro-webflow-components/pro-tab-menu.js"></script>
Add pro-tab-menu to define the tab menu element
Add pro-tab-menu to define the tab menu element

Add pro-tab-background to define the background for active menu
Add pro-tab-background to define the background for active menu

This element can be placed anywhere on the page. After the page loads, the background element will automatically be inserted inside the pro-tab-menu and positioned behind the active tab.
💡 Pro Tip: Set the background element to position: absolute to prevent any layout shift after the page loads.
Customization (Optional Enhancements)
Add pro-tab-ease to define the animation timing function
Add pro-tab-ease to define the animation timing function
Add this attribute on the element with pro-tab-background

The default easing is ease if the attribute is not present, but you can override it with any of the following values:
- linear
- ease-in
- ease-out
- ease-in-out
- cubic-bezier(custom bezier)
If you're also animating the text properties of the active menu item, make sure the text and background animations have matching ease properties for a smoother experience.
Add pro-tab-duration to define the duration
Add pro-tab-duration to define the duration
Add this attribute on the element with pro-tab-background

The default duration is 300ms but you can customize it with custom duration.
If you're also animating the text properties of the active menu item, make sure the text and background animations have matching durations for a smoother experience.
Use This Solution Multiple Times on a Page
This solution supports multiple tab menus on a single page
This solution supports multiple tab menus on a single page
If you want to use this solution multiple times on a single page, just add a unique suffix to the attribute values
- pro-tab-menu="true", "true-2", "true-3" and so on.
- pro-tab-background="true", "true-2", "true-3" and so on.
You dont have to add suffix to the pro-count-ease and pro-count-duration values.