Jump to content
Search Community

uzisky

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by uzisky

  1. 5 minutes ago, ZachSaucier said:

    I recommend using xPercent instead of getting the width yourself: xPercent: -100

     

    The only performance recommendation I would make in regards to that pen is potentially applying will-change: transform to .news_topics.  But the animation should play smoothly. Most likely any performance hits you're seeing are due to something else on your page.

    Sure. The performance hit is caused by the video playback, not GSAP. Thanks for the recommendation.

  2. GSAP, when applied correctly is super-smooth without question-- who want's to argue with that? The problem is, when it's stacked on the same page with a heavy workload like video playback, it struggles a bit. I notice this when I ran my infinite horizontal news ticker-- not a fault of GSAP but the end-user wouldn't know that since it's the news ticker jerking motion that is noticeable.

    My question is, it's there a strategy to further optimize for smooth transition? If their is, I may have to apply this solution to my videojs player as well-- I wish Greensock would release it's own kick-ass video player. I'm thinking of using Web Worker but given that GSAP is mainly a DOM workhorse, I wonder if it's feasible. Any thought on this?

     

  3. Hello @ZachSaucier, thanks for your response. The problem is how to have the items scroll vertically in a seamless loop and how to make each item pause for lets say 2 seconds, then scroll to the next item, then pause again ...on and on just like the first example on this page.

    This is what the current code code looks like:

    var tl = gsap.timeline();
    tl.to(".item", {y: "-=50", duration: 2});

    I tried this:

    var tl = gsap.timeline();
    tl.to(".item", {y: "-=50", duration: 2, repeat: -1, repeatDelay: 2});

    and this without successes:

    var tl = gsap.timeline({repeat: -1, repeatDelay: 2});
    tl.to(".item", {y: "-=50", duration: 2});
×
×
  • Create New...