Forum Discussion
How to use GSAP for animation in Storyline
Thanks, Math. I have a question, I use Xpercent 'vw' values to get the x and y positions to work correctly when the screen size changes when using gsap and it works but there is some degradation when the user changes the window size with the course open. I saw that you had the same problem in the example you shared. Do you have a solution for this?
Hi Merve, i am not sure which example you are referring to... and what degradation.
If its GSAP related im quite sure you find a solution on their forum...or make a sample codepen on their forum showing the issue and im 100% sure either Jack or one of the other GSAP heroes onthere will quickly help and solve it.
If its HTML related or Storyline/Articulate related...well this forum is your only chance :-)
Add a sample showing it clearly and i will help.
Kind regards,
Math
- MerveSatmaz2 years agoCommunity Member
What I want to tell is actually as in the image below. This kind of corruption happens when I change the window size while the file is open.
- MathNotermans-92 years agoCommunity Member
Ah well that the sizing / repositioning issue, using % and/or vw/vh calculations fixes that.
You can add a eventhandler to check whether the window is changing and change the image while changing the window.