Using triggers to move a scrolling panel in Storyline 2

I cannot select a scrolling panel as an object for a trigger. I'm trying to have a scrolling panel move when a button is clicked. And return to its previous position when it loses focus.

I'd like to do so via motion paths or JavaScript for UX purposes. I know it can be done with an entrance animation and the use of a show layer trigger, but that solution lacks the return animation.

I have experience with JavaScript and can accomplish the animation with code but do not know how to target the object directly (ie. by name).

3 Replies
Adam Cleghorn

Sounds like javascript will be the solution, is there a way to target the object?


var scrollPanel = document.getElementById("scrollingMenu");


var scrollPanel = document.getElementsByName("scrollingMenu");

or maybe via jQuery? Where the scrolling panel is "element"?