• Content count

  • Joined

  • Last visited

Community Reputation

0 Newbie

About HavasDK

  • Rank
  1. Loop with DevTools

    I know that type of solution, but it does not match up when you're running multiple timelines, like you suggested to set it up. Since the timeline is setup, on creation, the .call will not work properly. Here is a new way of setting up the banner, but still with some issues, which lays within GSDevTools i guess? After the first run, the last scene, which should only go to the "outro" label, will be executed much faster. And the timeline time will be changed to another time. Here is a new codepen. Do you think the GSDevTools is suitable for developing banners? I have tried 20 diffent ways now i think, but find it really hard to set up a proper template. Christian
  2. Loop with DevTools

    Hey, None of the solutions fits, mabye the real question is: "Is it possible to run a timeline which repeats, but on the last repeat some of the timeline needs to be removed"? Christian
  3. Loop with DevTools

    Hey, Thank you very much for your answer, but unfortunately this does not quiet solve my problem. This code looks very messy, and how would you scale this up to, lets say 100 scenes? - copy paste 4 lines 100 times? And there has to be an intro, which is only called on the first play, and an outro which is not called on the last play. Please say if my question unclear. I've found a "kind of" solution, which will be removing all the .from tweens, and use .set in the intro, and .to in the scenes. But thats a bit messy as well, and also add's multiple scene names to the GSDevTools. Christian
  4. Loop with DevTools

    Hey guys, I've updated the question, with a codepen. Hope this is good enough, else let me know. This version i've uploaded is a new version, where i've tried setting it up with an intro, middle, end master_timeline .add(intro()) .add(setup_scenes(true).repeat(1)) .add(setup_scenes(false)) ; But still with no luck. - Christian
  5. Loop with DevTools

    Hey guys, I'm creating a banner, which will play 3 times (loop 2), and use GSDevlTools. The bannerflow is like this: Intro, Scene 1, Scene 2, Scene 3, Outro Scene 1, Scene 2, Scene 3, Outro Scene 1, Scene 2, Scene 3 So after the first loop Intro should be removed, and the last loop should not play the Outro. My issue here is, that i cannot figure out a way to write the code, so it also works with GSDevTools. - the final timeline is not showing the correct length. I've tried with var master_timeline = new TimelineMax(); master_timeline .add(intro()) .add(scene1()) .add(scene2()) .add(scene3()) .add(outro()) .add(scene1()) .add(scene2()) .add(scene3()) .add(outro()) .add(scene1()) .add(scene2()) .add(scene3()) ; But that makes it very messy writing the scenes.. - i cannot use .from at all because, the it conflict with the scenes later on. Then i've tried with var master_timeline = new TimelineMax({repeat:2, onRepeat:check_replay}); master_timeline .add(intro(), "intro") .add(scene1(), "+=0.5") .add(scene2(), "+=0.5") .add(scene3(), "+=0.5") .add(outro(), "outro+=0.5") ; function repeat(){ master_timeline.remove("intro"); } Which does not remove the intro. Then i've tried var master_timeline = new TimelineMax({onComplete:repeat}); var loops = 0; var max_loops = 3; master_timeline .add(intro(), "intro") .add(scene1(), "+=0.5") .add(scene2(), "+=0.5") .add(scene3(), "+=0.5") .add(outro(), "outro+=0.5") ; function repeat(){ loops++; if(loops == 1){ master_timeline.remove("intro"); } else if(loops >= max_loops){ master_timeline.remove("outro"); } master_timeline.restart(); } Which it does not remove any of the labeled scenes, and the GSDevTools timeline, does not show the correct maxtime. I'm really out of solutions, so i would be very happy if any of you guys have a solution, or just a hint which can lead me in the correct way. Best regards Christian