Jump to content
Search Community

Leemoon

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by Leemoon

  1. ScrollTrigger.create({
                scroller: document.documentElement,
                start: 0,
                end: () => this.scrollHeight,
                invalidateOnRefresh: true,
                scrub: true,
                onUpdate: self => {
                    console.log(self.progress + "////");
                }
            })
     
    after resize, why can't scroll to the max value ? 
    function-base value and invalidateOnRefresh   I  have set.
    thanks 
     
    gsap version 3.7.1
  2. How to set reverse ease??

    for example:

    let tl = gsap.timeline({
        paused: false,
        defaults: {
            duration: 3,
            ease: "power3.in"
        }
    })

    tl.to(".div1", {x : 500});
    tl.to(".div2", {y : 500});

    tl.play();

    ///// when called play,  ease: "power3.in" is working.

     

    tl.reverse();

    ////but called reverse, ease  is not working,   how to set reverse ease? please~

×
×
  • Create New...