Forum Discussion
As this post triggered me to see if i can find a way to get info of a clicked element with the help of Gsap in Storyline...i did.
Basically with this line of code you can get the active focused element in the DOM.var activeEl = document.activeElement;
With the help of the 'getProperty' function of GSAP you then can get any info you want from that element.var accName = gsap.getProperty(activeEl,"data-acc-text");
Then its easy to manipulate or get info from your document with GSAP.
If you want any other element on your page acting upon a specific buttonclick you can use the z-index to target any visible element in your Storyline.var elZindex = gsap.getProperty(activeEl, "z-index");
All elements in your timeline are on a specific z-index. The lowest is 1, numbering up.
Making a separate post showing it working...