Get info from active element in Storyline
As another user asked a question in the forum about how to get info of the current selected object, i jumped onto that to figure it out. Actually getting the actual focused element was easy enough.
var activeEl = document.activeElement;
This line of code does that. And as GSAP is build into Storyline360 its quite easy to get any info you want from that focused element with the 'getProperty' function of GSAP.
var accName = gsap.getProperty(activeEl,"data-acc-text");
But often you want some other element on the page act upon a hover or click of some button. Storyline's timeline acts as a layered HTML5-document, so you can get all of the visible Storyline elements and use z-index to target the one you need.
Here you see a sample implementation of this.
Im adding the Storyline as is to this post...so anyone who wants to dive into this can...