Jump to content
Search Community

Dylekter

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Dylekter

  1. Hi, I would like to make an animation with a scrolltrigger. I have a ball that changes its position when I scroll. There is also a second ball below it. I would like the lower ball to move a bit later when scrolling, but when I stop scrolling, even in the middle of the animation, the ball returned to that ball. Is it feasible with a scrolltrigger or should I write it in js?

    Screenshot 2021-03-15 183323.png

  2. Hi! When I remove the markers property or set it to false, the ScrollTrigger stops working. Why?

     PS: With markers it works

    let tl2 = gsap.timeline();
    tl2.from(".root--offer__header", {
        xPercent: 650,
    });
     
    ScrollTrigger.create({
        animation: tl2,
        trigger: ".root--offer__header",
        start: "top top",
        end: "+=4000",
        scrub: true,
        pin: true,
        anticipatePin: 1,
        duration: 2,
        ease: "none",
        markers: true,
    });
×
×
  • Create New...