Documentation on Visual Composer’s accordion event handler

I’m trying to write some extra javascript to scroll to the top of an open accordion created by Visual Composer. The script I wrote MOSTLY works, if not for the fact that it scrolls to where the top was prior to the accordion tab being open. Most accordions, sliders, tab systems, etc, have some sort of targettable event that one can listen for, then write for script to execute after said event fires. I’ve looked, and whoever originally developed the site has allowed a ton of javascript to be on each page, regardless of functionality.

I’ve also checked Visual Composer’s documentation, and there is no documentation on javascript events whatsoever. So, bit of a hail mary: anyone ever figured out what Visual Composer’s accordion’s open and close accordion events are?

Read more here: Documentation on Visual Composer’s accordion event handler

Leave a Reply

Your email address will not be published. Required fields are marked *