Tabs Future Plans

SA5 Tabs Future Plans

Roadmap

Feature
Now
Planned
Considering

Orientation

Vertical or horizontal, defined by your Webflow tabs element

Animations for open/close

Considering some means to support WF Interactions, or else GSAP themes.

Dynamic initialization

Select on # or query param, and scroll-to

Modes

Tab change on hover

Tabcordion

Keyboard

Possible keyword support, review a11y requirements

circle-check

JavaScript API

Methods

Feature
Now
Planned
Considering

Programmatic Navigation

Navigate to tab number, first, last, next, and prev

Add / remove / reorder tabs

Considering

Events

Feature
Now
Planned
Considering

Tab changed event

Occurs on any tab change

Will reconsider how this should work in multi-item mode

Tab can change event

Can open, can close, etc. Give dev the ability to reject an open or close request.

Additional thoughts;

  • Detection of common hidden state scenarios, and numbering, selection etc. based on the visible indices only.

    • Conditional visibility

  • Auto-select N ( e.g. if first is conditionally hidden, we get tab 2 )

  • Addition of informational attributes on the tabs outer element

    • no tabs state, tab count

  • Console log error if more than one tab element is accidentally assigned the same unique name.

Some things we're considering;

triangle-exclamation

Events

Pre-change event

Fire an event before a tab change happens, and allow the responding code to approve/deny the change. This is very interesting, for special flows such as multi-step forms.

However it requires;

  • Completely overriding the default webflow.js event handler

  • Replacement of that default handler with an SA5 variant

  • An event origination flag, i.e. user-initiated v. code-initiated

Change on Hover

https://discourse.webflow.com/t/open-tab-pane-on-hover-instead-of-click/218539/3arrow-up-right

Select on Query or #

  • #hash on query

    • Use tab name as default

    • Or explicit name ( e.g. CMS-based ) wfu-tab

      • Auto-gen these on CMS layout to tabs

        • Will need an wfu-tab-ns also

  • Scroll-to option

  • URL change option as tab changes

  • In-page link from #hash links or NS #ns.ksdfj

https://webflow.com/made-in-webflow/website/simple-tab-linkarrow-up-right

Approaches-

Event listener on links

Hashchange event;

Intercept Link Clicks with event delegation

Last updated