Forum Discussion
MathNotermans-9
4 years agoCommunity Member
GSAP, x-y transformation in the Modern Player
As some other users in other posts commented when resizing/scaling your browser a Storyline using GSAP for animation will loose its proper positioning and that ain't fun. Allthough i had that fixed ...
MathNotermans-9
2 years agoCommunity Member
When using the console, you can test directly in the console whether some code works.
Like this...
Step 1: Get your selector or JS path ( either will do ). Right click any element to get this popups.
Step 2: You now have a line of code like this:document.querySelector("#next");
Step 3: Use some GSAP animation on it. Like this:let nextBttn = document.querySelector("#next");
gsap.to(nextBttn, { duration:0.5, autoAlpha:0 });
Step 4: Test it in the console by pasting it inthere. As seen here:
Step5: Press ENTER and you see your code executed. Notice the next button disappearing in 0.5 seconds. And thus this will work when using it in Storyline too.