CraigS
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by CraigS
-
-
I have 3 timelines - a main timeline and 2 child timelines built in functions. The second timeline contains a set method which appears to get placed at the beginning of the main timeline when added. According to the docs, both the add and set methods are placed at the current end of the timeline if the position is omitted. Can you help me understand what I'm doing wrong?
Please see codepen. The green box is being hidden at the beginning if the main timeline instead of after the first tween completes.
-
1
-
TweenMax.set() moves to beginning of timeline
in GSAP
Posted
Gentlemen, thank you so much. I chose to use immediateRender to fix my problem. However, the "from" tween that immediately followed it caused another. The information provided in this post along with the video gave me me what I needed to restructure the 2 lines of code to produce the desired results. It's now clear that two consecutive ImmediateRender:true tweens on the same object(s) need special consideration. Also, learning how to use transform:"none" to restore original values like x and y played a very important part of changing a from tween to a to tween.
The other proposed solutions gave me a lot of ideas of how I can use them in other situations. They were much appreciated as well.
And yes Dipscom, I have been an off and on member for a long time. The fact that I have always found answers in this forum without asking questions says a lot about the effort and expertise you guys put into it.