Accordion Future Plans
Add auto positioning for longer accordions;
Roadmap
Setup
Using DIVs
Using a Tab Component, with automatic detection
Modes
Single-item mode. One panel open at a time
Multi-item mode. Ability to open multiple items
Orientation
Vertical or horizontal, defined 100% by your open-state and closed-state classes
Animations for open/close
None
Considering some means to support WF Interactions, or else GSAP themes.
Dynamic initialization
Select on # or query param, and scroll-to
Auto-scroll
None
Allow auto-scrolling when an accordion opens, so that the top of the new panel is visible. https://discourse.webflow.com/t/dropdown-accordion-behavior/300142/7
JavaScript API
Methods
Programmatic Navigation
Navigate to slide number, first, last, next, and prev
nextLoop prevLoop
Add / remove / reorder slides
Considering
Events
Item changed event
Occurs on any slide change
Will reconsider how this should work in multi-item mode
Item can change event
Can open, can close, etc. Give dev the ability to reject an open or close request.
Last updated