Jump to content
Search Community

LSchneiderman

Members
  • Posts

    54
  • Joined

  • Last visited

Posts posted by LSchneiderman

  1. I have a trigger that works correctly scrolling forward, but not backward. Going forward, I want the navbar to change from highlighting Part 1 to highlighting Part 2 at a certain point, then to change from highlighting Part 2 to highlighting Part 1 when you scroll backward past that point. My code doesn't work for the backward scrolling part. What am I doing wrong please?

    See the Pen xxYRwGX?editors=1111 by lschneiderman (@lschneiderman) on CodePen

  2. We just bought Club Greensock BusinessGreen. But how do we install this? We don't have npm or yarn. We need to download it to our laptop/PCs and to our production server. We basically just want the DrawSVG plugin. How do we do this?

  3. @mikel That's great! The set seems to be what I need. If I want to fade in the ball, would I set opacity to 0 in the css and then make the set phrase read:

    set(".ball03",{opacity:"1"}, 2.48);

     

    How would I set the number of seconds for the animation?

  4. @Cassie

    Thank you!!

     

    I don't know if you can help me with this tweak, but when I incorporated the path into my larger project, the circle follows the path, but when it reaches the end, it jumps back to its original, beginning spot:

     

    var action = gsap
          .timeline({
            defaults: { duration: 9 },
            scrollTrigger: {
              trigger: "#path-pin",
              start: "top top",
              end: "+=200%",
              pin: true,
              pinSpacing: true
            }
          })
          .to(".ball01", { duration: 0.01, autoAlpha: 1 })
          .from("#path", { drawSVG: 0 }, 0)
          .to(
            ".ball01",
            { motionPath: { path: "#path", align: '#path', alignOrigin: [0.5, 0.5] } },
            0
          );

     

    How do I make that circle just stay at the end of the svg path once it has followed the path all the way?

     

    • Like 1
  5. I'm trying to pin a div on top and then later pin something just underneath the first div. I am still very new to the whole GreenSock/ScrollTrigger world and don't have my bearings yet. Could someone help me with what am I doing wrong with these pins? I don't understand pin spacing and I wish I could use responsive spacing with percentages rather than pixels.

    See the Pen wvdbNaw by lschneiderman (@lschneiderman) on CodePen

×
×
  • Create New...