Jump to content
Search Community

CoderJon

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by CoderJon

  1. Hey Zach thank you! And thanks for the taking the time to answer my question! :) We picked up GSAP for a project at work and I've taken some of Carl's courses! It's a great library!

     

    It looks like it still does it when the element isn't pinned. I also tried anticipate pin: 1 and it doesn't seem to work=/.

     

    To me it kind of looks like a "bunny hop" up when you scroll down slightly...or what I think more accurately is happening is that when I scroll down...there might be a slight delay before the element moves down with it?

    If you contrast that with this

    See the Pen YzGXqXN by jonathan-wong-code (@jonathan-wong-code) on CodePen



    where there is no second trigger for pin and the animation looks smooth  I think you can see the difference.

  2. Hi! So the basic idea is that I want my animation to start 500 pixels before the trigger element. But I'd also like it pin AT the trigger.

     

    Based on some research, I'd found these posts

     

     

    Advocating the use of creating separate triggers for the animation and the pinning. However when I tried this my fade animation appears to "stutter" or hesitate or "jump up" when you use a series of "short scroll down" strokes. AKA not one smooth motion... This is also apparent when used a regular mechanical mouse than a trackpad.  From what i can tell most of the choppy happens in that 700px of "start" from the first trigger...and after it passes the pin trigger it smoothes out.

     

    If I remove it and start the animation on the same Trigger as the pin it smoothes out.  I figure it has something to do with having 2 triggers but I'm not sure it is.

     

    Any help is appreciated thanks!

    See the Pen ZEpYzYz by jonathan-wong-code (@jonathan-wong-code) on CodePen

×
×
  • Create New...