Hi All,
I have an accordion element which when opened shows the container box and content. I’d like to have a hover off collapse of the section so that users don’t have to manually click the title block again to collapse it. I’ve tried various coding with velo but none actually seem to work. I’ve tried applying the code to just the expanded content box, and to the entire accordion element to no success. I’ve been using GPT to help but nothing seems to work. Is it even possible with wix studio? Even better would be hovering on the title blocks to expand sections as well - but am happy to settle with just hover off to collapse. Any ideas?
If you’re looking to use the Accordion component as is - it doesn’t seem possible, since there’s nothing available in code to alter the expand/collapse state of accordion items.
That said, you could potentially build your own solution with a repeater, CMS, expanding and collapsing items within each repeater item based on interactions, and then a little CSS to make the expand/collapse smooth like the Accordion.
1 Like