Jump to content


  • Posts

  • Joined

  • Last visited

Ocamy's Achievements

  1. Hi, I am coming back with another problem that is also happening in the demo above: https://stackblitz.com/edit/web-platform-gszrpg When updating to a newer version of Scroll trigger i.e. 3.5.1 and above, the scrollbar appears and makes the body wider even though overflow is set to hidden.
  2. I'm so glad i joined this forum. Thank you so much @akapowl
  3. Thanks again @akapowl, i wasn't aware of the duplicate, i found out it is because the barba container must be inside the locomotive container. I hope i can do it. Thanks!
  4. Hi! @akapowl helped me out yesterday to get pinned animation working with Locomotive and Barba, but after that i've realised that pinSpacing is not working as expected after going to the other page and coming back. https://stackblitz.com/edit/web-platform-vhx7k3?file=index.html,styles.css,index.js Also, the animation jumps on mobile, and if remove the code below it works but it is extremely jittery. pinType: container.querySelector('[data-scroll-container]').style .transform ? 'transform' : 'fixed',
  5. This is incredibly helpful. It worked by creating the scrolltrigger animations after the loader animation (obviously 😅 ). Thank you so much!
  6. Hi, i encounter a problem trying to use Locomotive Scroll and Barba, the pinned section is in wrong position on the initial load, but after going to next page and coming back it works fine. I've combined to demos that i found to show the problem. https://codesandbox.io/embed/smoosh-hill-qb6er4?fontsize=14&hidenavigation=1&theme=dark LE: By providing the demo i found out that resizing the window (in codesandbox) it works fine but i still don't know how to solve it. The actual question: how can i add ScrollTrigger.refresh() without resizing the window?