Jump to content


  • Posts

  • Joined

  • Last visited


0 Newbie

About momciloo

  1. I think I managed to better understand the problem, so here is the reduced explanation: What I think is happening, is that when I want to play an animation from a certain point in time, it also runs functions before. In the example here, when I click the button, I am expecting only the function with 'audio' label to run when I click on audio button, but what it does is just playing master timeline from the beginning. What is the real usage here, is that I have master timeline, that has nested timelines in it, and each nested timeline should play one by one, and has "next" button at the end of it's animation. So only clicking on "next" should resume master animation. But I also have external navigation, where I can choose which part of the master animation I want to play. Thank you!
  2. Hello, Thanks for fast response. I posted only this, without a demo, since I wanted to check if what you currently see seems alright. When I try master.play('certainLabel'), it behaves literary as master.resume(); I have that much pauses because each section has it's own "next" button, which just resumes the master timeline. Maybe it's not the best approach, but that's why I am here asking the question
  3. Hello, First time posting here, but already learned a lot of great things on this forum. Thank you community! I am having a problem with playing timeline from a certain point (label). I have one master timeline, which is holding a lot of smaller timelines, functions etc. And I have main navigation (regular buttons), that should control navigating through the main (master) timeline. const master = new TimelineMax(); master.add( preload ) .add( audio_togle, '+=13' ) .add( particles ) .add( navigation_show ) .add( videoSize, 'particles+=2' ) .add(function () { videoPlay('intro') }) .add( parallax ) .add( scene_first_show, 'scene1show' ) .add( pause ) .add( scene_first_hide, 'scene1hide' ) .add( pause ) .add(function () { scene(text[0]) }, 'home' ) .add( pause ) .add(function () { scene(text[1]) }, 'about') .add(pause) .add(function () { scene(text[2]) }, 'contact') .add(pause) .add(function () { scene(text[3]) }, 'portfolio') .add(pause) .add(function () { videoPlay('outro')}) .add( scene_final, 'finalLogo') .add(pause) function pause() { master.pause(); masterIsPaused = master.paused(); console.log('Master is paused'); } And I have that main navigation button, where on click, I check it's `data-show` attribute, and use it as a label name. mainNavItem.on('click', function () { $self.addClass('is-active'); mainNav_hide(); var whatToShow = $self.data('show'); master.seek(whatToShow); }); But `master.seek(whatToShow);` doesn't work at all. How can I jump to certain label and play from there? Thank you, Mo