Jump to content
Search Community

megam

Members
  • Posts

    6
  • Joined

  • Last visited

Community Answers

  1. megam's post in pagepiling.js with GSAP was marked as the answer   
    i fixed the problem with this code
     
      onLeave: function (index, nextIndex, direction) {         if(nextIndex == 3){           gsapAniSa.seek();           gsapAniSa.pause();         }         if(nextIndex == 4){           gsapAniPro.seek();           gsapAniPro.pause();         }         if(nextIndex == 5){           gsapAniSup.seek();           gsapAniSup.pause();         }         }}  
    first we put seek and pause for each timeline with different name with global variables out side of pagepiling then when we call animation like gsap.to(......)
    we call gsap.play() before .to etc.

    then it works
×
×
  • Create New...