Jump to content
Search Community

ligr

Business
  • Posts

    5
  • Joined

  • Last visited

Everything posted by ligr

  1. Disregard, our production build had type checking disabled and that allowed some missing TimelineMax errors to sneak through.
  2. Is there any recommended workaround to this for module users?
  3. Thanks! That hidden helper seems to have done the trick. Am I wrong in thinking the below modifications also mean you get the benefits of lag smoothing when the page is visible? function tickGSAPWhileHidden(value) { if (value === false) { document.removeEventListener("visibilitychange", tickGSAPWhileHidden.fn); return clearInterval(tickGSAPWhileHidden.id); } const onChange = () => { clearInterval(tickGSAPWhileHidden.id); document.hidden && (tickGSAPWhileHidden.id = setInterval(() => { gsap.ticker.lagSmoothing(0) gsap.ticker.tick() }, 100)); !document.hidden && gsap.ticker.lagSmoothing(400, 40) }; document.addEventListener("visibilitychange", onChange); tickGSAPWhileHidden.fn = onChange; onChange(); // in case the document is currently hidden. }
  4. I implemented this suggestion here in version 2 . This seems to not working using gsap.ticker.lastSmoothing(0) or // or false or 0 ,0. Is this not supported in version 3?
×
×
  • Create New...