Jump to content
GreenSock

popClingwrap

Members
  • Posts

    3
  • Joined

  • Last visited

popClingwrap's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. I really appreciate the work being put in to investigate this. The workaround was fine but it's good to know I was coming at it from the right angle at least. I'll have a proper look at the fork you posted at work tomorrow. Thanks again for the awesome support
  2. Cheers Diaco, that has sorted the issue and the way you have approached it is neater than what I was trying. Do you have any pointers as to why mine was not working? I'm trying to get some approaches and best practices solid in my mind regarding GSAP and failed code is a great way to learn if someone can point out why it failed Thanks again though, I will stick your solution back into my build and see what catches fire next.
  3. Morning, I am trying to build a timeline using TimelineMax that is just fading elements in and out. I want it to play through the first elements in sequence but then, depending on the number of the current loop, to show a different final frame each time round. I have set up the simplest example I can in codepen I wanted the animation to run - red, green, blue, red, green, pink on a loop - but this does not happen. If the tl.play() on line 20 is set to 'blue' it just never shows the pink element at all and if the label is set to 'pink' it also ignores the blue element every other loop. I just can't get it to branch as expected so firstly, am I going about this the wrong way or missing something basic? Secondly, can anyone explain the behaviour I am getting and how I might make it run as I want? Any details will be gratefully received even if they are not necessarily solutions as I don't really have a good picture in my head of exactly how GSAP runs and I want to understand its general flow better. Cheers in advance
×