Jump to content
Search Community

David1985

Members
  • Posts

    2
  • Joined

  • Last visited

David1985's Achievements

  1. Thanks Jack! My mediocre javascript skills didn't pick up on that. The increment value is now correctly renewing on window resize.
  2. Hi everyone, I came across a horizontal scroll solution made by GSAP's Cassie that features a pausing effect on each horizontal scroll item. On initial page load this works perfectly! However when the window is resized, the effect is broken. If you look at the Codepen, there are two values that need be updated. container.offsetWidth, and the variable increment. From my understanding having 'invalidateOnRefresh: true' should update the container value, but it doesn't seem to be. The increment variable uses the container value as well so it is also not updating. Is anyone able to take a look and see what it would take to make it responsive? Hopefully it is a relatively easy fix. Thank you
×
×
  • Create New...