Forum Discussion
How to use GSAP for animation in Storyline
As said local scope was the main issue why your setup didnot work. The simplest way to solve that in simple projects is by using variables to pass along your tweens.
https://360.articulate.com/review/content/c033023b-7734-4cab-982c-b51a21412560/review
As you see here i added a variable 'redAnim' to which i write the tween for the red circle.
Now i can call any GSAP call on it at the buttons.var redAnim = player.GetVar("redAnim");
redAnim.restart();
Luckily GSAP is that intelligent it recognizes its a GSAP tween, nevertheless its just a text variable.
When clicking pause you will notice some weird things when playing or reverting...somehow the tween gets changed and the start / endpoint change somewhat. I guess using GSAP timelines would be better for this kind of setup.
As said when time permits this weekend i make a setup with WebObjects to show the perfect setup.