Jump to content
Search Community

meettrivedi

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by meettrivedi

  1. I am trying to use tweenTo to skip panels if user clicks on it, but when i use oncomplete: resume , it goes back to panel where it was clicked rather than continuing. I apologize as I could not make a codepen.
     

    $(document).on("click", "h1", function(e) {
    var label = $(this).attr("panel");
    
    e.preventDefault();
    
    var t=timeline.getLabelTime(label);
    timeline.tweenTo(t,{onComplete:resume, onCompleteParams:[], ease:Strong.easeOut});
    
    function resume()
    {
    timeline.resume(label);
    //it does not resume from label or time t
    }
    
    });
×
×
  • Create New...