Forum Discussion
TimelineLite Javascript animation issues when replaying a slide
First of all..share a sample...as it makes it a lot easier to debug.
Storyline's rewind, seek and timeline controls are totally unaware of any Javascript GSAP code you add. I seldom use Storyline's own controls but create my own, so i have full control. Most of my projects use the transparant player. So no player at all :-)
If you want your GSAP animations to respond to Storyline's timeline controls... well you have to add triggers that reset your animations as needed when clicking the controls in question.
Thanks for your answer and sorry for the delay. Attached is a sample file with the 2 elements I scale by using GSAP. if you notice when publishing it and playing it on the browser, the first time, the 2 shape will scale normally. When i press the play button again though, the animation will no longer be smooth, it will just jump from the original size to the final size. As you mention that i should add some triggers to reset the animation, any chance to be more specific. I'm so new to articulate that there's a lot I don't understand and haven't explored just yet.
Again thank you very much for you advice and time
- MathNotermans-93 years agoCommunity Member
Hi Manny, As mentioned earlier...Storyline's timeline play/pause button is totally unaware of any GSAP based animation. It is possible to select it and make a GSAP animation act upon clicking Storyline's player controls, however that takes quite a deep knowledge of both Storyline's player and Javascript.
I do suspect you don't have both, so i would suggest skip the GSAP and Javascript stuff and learn Storyline first. You can get this done in Storyline without using GSAP javascript. When at time you know Storyline well enough... and you encounter things you cannot do by default in Storyline... then learn Javascript and GSAP and you can tackle it.
That said, i probably make some samples of how to get control of the Storyline player to control GSAP... when i got some time...- MannyRak3 years agoCommunity Member
Thank you very much for take the time to answer, I really appreciate it. Yeah, I'm definitely learning Storyline and trying to go in depth wwith it to understand all its little intricacies. For this specific problem, I went the GSAP way because I couldn't find a proper way to scale and move those objects at a certain time. I'm so used to video editing so I thought there would be something like keyframes or something like that.